Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview 1.82.15 Release #676

Merged
merged 91 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
bc88757
[skip ci] Update README.md
neon-nyan Jan 14, 2025
0d047e8
[skip ci] Sync translation Translate en_US.json in ja_JP
transifex-integration[bot] Jan 15, 2025
e7de2d2
[skip ci] Sync translation Translate en_US.json in vi_VN
transifex-integration[bot] Jan 15, 2025
2a44755
Apply for persistent audio patch if possible
neon-nyan Jan 15, 2025
1fe7d00
Fix taskbar progress does not disappear after game installation
shatyuka Jan 16, 2025
8f6d2b1
Update Hi3Helper.Sophon
neon-nyan Jan 17, 2025
4cb4fe0
Separate hashing method to its own Hash class
neon-nyan Jan 17, 2025
b9f048f
Split GamePresetProperty into its own file
neon-nyan Jan 17, 2025
afb0c05
GamePropertyVault and GamePresetProperty CodeQA
neon-nyan Jan 17, 2025
43123b0
CodeQA
neon-nyan Jan 17, 2025
83bac13
Fix compile error
neon-nyan Jan 17, 2025
da68876
Check UAC status
shatyuka Jan 17, 2025
f80d385
[skip ci] Sync translation Translate en_US.json in zh_CN
transifex-integration[bot] Jan 17, 2025
b6f670f
[skip ci] Sync translation Translate en_US.json in ja_JP
transifex-integration[bot] Jan 17, 2025
6bbb694
[skip ci] Sync translation Translate en_US.json in vi_VN
transifex-integration[bot] Jan 17, 2025
f4e5729
[skip ci] Sync translation Translate en_US.json in id_ID
transifex-integration[bot] Jan 18, 2025
25bec28
Add more hashing methods on Hash helper
neon-nyan Jan 18, 2025
0790696
[skip ci] Sync translation Translate en_US.json in es_419
transifex-integration[bot] Jan 18, 2025
8effb69
[Hash] Revert Generic boxing on Hash creation methods
neon-nyan Jan 18, 2025
c79b961
Update Nungget
bagusnl Jan 18, 2025
381e4a4
Explicitly tell ILCompiler version
bagusnl Jan 18, 2025
f6bb961
Huge CodeQA
neon-nyan Jan 18, 2025
bf43788
Huge CodeQA (pt. 2)
neon-nyan Jan 18, 2025
5444f36
Fix compilation error
neon-nyan Jan 18, 2025
cf8e639
Huge CodeQA (pt. 3)
neon-nyan Jan 19, 2025
d449d81
Use per-class JSONContext
neon-nyan Jan 19, 2025
778c70c
Rename JSONContext -> JsonContext
neon-nyan Jan 19, 2025
144fea7
Update H.NotifyIcon to support latest CsWinRT
neon-nyan Jan 19, 2025
dd36d94
Make Api*HttpClient always be non-nullable
neon-nyan Jan 19, 2025
455c1ad
Update Static Libs
neon-nyan Jan 19, 2025
ec7b39b
Update Hi3Helper.Sophon
neon-nyan Jan 20, 2025
10d66fd
Update Microsoft.Web.WebView2
neon-nyan Jan 20, 2025
88490ec
Update WindowsAppSDK and Xaml.Behaviors.WinUI.Managed
neon-nyan Jan 20, 2025
5c6d361
Use ILCompiler 9.0.1 for trim-sensitive submodules
neon-nyan Jan 20, 2025
18d9027
Update Hi3Helper.Sophon
neon-nyan Jan 20, 2025
5362e33
Revert "Use ILCompiler 9.0.1 for trim-sensitive submodules"
neon-nyan Jan 20, 2025
f2b1688
Revert ILCompiler 9.0.1 changes
neon-nyan Jan 20, 2025
4f39b9e
[.NET Bug] Explicitly use JsonSerializerHelper due to extension bug
neon-nyan Jan 21, 2025
d1c8377
[QD] Update submodules before scan
bagusnl Jan 21, 2025
da94ade
[QD] Qodana-actions bug
bagusnl Jan 21, 2025
574669c
[QD] Try using same sm fetch command as github's
bagusnl Jan 21, 2025
8156a2c
Update Static Libs for AOT
neon-nyan Jan 21, 2025
7d9e69d
Review changes
neon-nyan Jan 22, 2025
a364f57
Fix throw on initial load for shared hash
neon-nyan Jan 22, 2025
1e53521
Update and Fix AOT Static Library Errors
neon-nyan Jan 23, 2025
956cd2f
Update Hi3Helper.Win32
neon-nyan Jan 23, 2025
42bee49
Split GameVersionBase into several files
neon-nyan Jan 25, 2025
db67178
Allow the use of == operator override on IniValue
neon-nyan Jan 25, 2025
6590853
Fix null pointer on STORAGE_PROPERTY_QUERY buffer
neon-nyan Jan 25, 2025
4a73c65
Set AOT specific settings only on non-debug
neon-nyan Jan 25, 2025
6219845
Move GetGameState from GameApi to GameState
neon-nyan Jan 25, 2025
df0930c
Always ignore caching on GameVersionBase stateful properties
neon-nyan Jan 25, 2025
7289586
Simplified IsDiskPartitionExist check
neon-nyan Jan 25, 2025
42071a5
Allows ZZZ to use fallback region is server is not found
neon-nyan Jan 25, 2025
622a264
Always use ArrayPool on AssociateGameAndLauncherId
neon-nyan Jan 25, 2025
92344dd
Small CodeQA on PresetConfig
neon-nyan Jan 25, 2025
a1b64bd
CodeQA
neon-nyan Jan 25, 2025
33984df
Fix compile error on InnoSetupLogUpdate
neon-nyan Jan 25, 2025
5e95b7f
More CodeQA
neon-nyan Jan 25, 2025
5401d79
Revert Update packages.lock.json on InnoSetupHelper
neon-nyan Jan 25, 2025
9e599ec
Fix recursion on IniValue's Equals()
neon-nyan Jan 25, 2025
d671527
Use HttpClient max conn as per multip. of 1.5
neon-nyan Jan 26, 2025
29c46c3
[Hi3] Use SearchValues to ignore assets
neon-nyan Jan 26, 2025
7de3d15
CodeQA
neon-nyan Jan 26, 2025
ca49da5
Specify .NET SDK version
bagusnl Jan 26, 2025
b2de43e
Refresh package.lock.json
bagusnl Jan 26, 2025
1343fce
CodeQA
bagusnl Jan 26, 2025
a0af4fe
NuGet changes
bagusnl Jan 26, 2025
c1a666e
CodeQA (again)
neon-nyan Jan 26, 2025
1b2d110
Major CodeQA - 20250119 (#673)
neon-nyan Jan 26, 2025
6aac36b
[ZZZ GSP] Change HiPrecisionCharaAnim as selection
neon-nyan Jan 26, 2025
9753a66
[ZZZ GSP] Change Global Illumination to Low on Low preset
neon-nyan Jan 26, 2025
ff65890
Rent buffer while eeping (coz I hab no moneh)
neon-nyan Jan 26, 2025
1c34ebd
[ZZZ GSP] Keep unknown properties on serialization
neon-nyan Jan 26, 2025
8de77f3
[skip ci] Sync translation Translate en_US.json in id_ID
transifex-integration[bot] Jan 27, 2025
c298505
Replace managed process APIs with ProcessChecker
neon-nyan Jan 27, 2025
014b339
Fix get active window check
neon-nyan Jan 27, 2025
a79b7c5
Ensure dispose the Process after using
neon-nyan Jan 27, 2025
0d7f1e1
Use ProcessChecker API to set process priority
neon-nyan Jan 27, 2025
fdfe725
Bump version
neon-nyan Jan 27, 2025
1a94d95
CodeQA (pls, this is the last one)
neon-nyan Jan 27, 2025
0ec5be8
[skip ci] Bring back Qodana Scan PR
bagusnl Jan 27, 2025
c29b660
Bring back Qodana scanner
bagusnl Jan 27, 2025
81aa640
[skip ci] Sync translation Translate en_US.json in es_419
transifex-integration[bot] Jan 27, 2025
5f2495b
XAML and .cs CodeQA
neon-nyan Jan 27, 2025
26e94b9
[skip ci] Sync translation Translate en_US.json in ja_JP
transifex-integration[bot] Jan 27, 2025
412c4ac
Much more CodeQA
neon-nyan Jan 27, 2025
fe27db8
Fix SonarQube CodeQA issue
neon-nyan Jan 27, 2025
90f9a72
CodeQA (again)
neon-nyan Jan 27, 2025
5460fd2
Another (one) CodeQA
neon-nyan Jan 27, 2025
56c25bf
Another F-Ing CodeQA
neon-nyan Jan 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 0 additions & 6 deletions .github/workflows/qodana-scan-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ on:
pull_request:
branches:
- main
- preview
- stable
paths-ignore:
- '**.md'
- 'Hi3Helper.Core/Lang/**.json'
Expand All @@ -21,13 +19,11 @@ jobs:
pull-requests: write
checks: write
security-events: write

strategy:
matrix:
configuration: [Release] # No need to distribute Debug builds
platform: [x64]
framework: [net9.0-windows10.0.22621.0]

env:
Configuration: ${{ matrix.configuration }}
Platform: ${{ matrix.platform }}
Expand All @@ -45,7 +41,6 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
fetch-depth: 0 # a full history is required for pull request analysis
submodules: recursive # many many submodules

- name: Install .NET
uses: actions/setup-dotnet@v4
with:
Expand All @@ -62,7 +57,6 @@ jobs:
pr-mode: true
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} # read the steps about it below

- uses: github/codeql-action/upload-sarif@v3
if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}
with:
Expand Down
18 changes: 5 additions & 13 deletions .github/workflows/qodana-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0,3,5' # At 00:00 on Sunday, Wednesday, and Friday.
# pull_request:
# branches:
# - main
pull_request:
branches:
- preview
- stable

jobs:
qodana:
Expand All @@ -15,31 +16,26 @@ jobs:
configuration: [Release] # No need to distribute Debug builds
platform: [x64]
framework: [net9.0-windows10.0.22621.0]

env:
Configuration: ${{ matrix.configuration }}
Platform: ${{ matrix.platform }}
DOTNET_INSTALL_DIR: '.\.dotnet'
DOTNET_VERSION: '9.x'
DOTNET_QUALITY: 'ga'
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages

permissions:
actions: read
contents: write
pull-requests: write
checks: write
security-events: write

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
submodules: recursive # many many submodules

# - name: Install winget
# uses: Cyberboss/install-winget@v1

# - name: Install Qodana CLI
# uses: crazy-max/ghaction-chocolatey@v3
# with:
Expand All @@ -50,21 +46,18 @@ jobs:
# Import-Module "$env:ChocolateyInstall/helpers/chocolateyInstaller.psm1"
# refreshenv
# qodana --version

- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
dotnet-quality: ${{ env.DOTNET_QUALITY }}
cache: true
cache-dependency-path: CollapseLauncher/packages.lock.json

# - name: Qodana Scan
# run: |
# Import-Module "$env:ChocolateyInstall/helpers/chocolateyInstaller.psm1"
# refreshenv
# qodana scan --ide QDNET-EAP -o ${{ runner.temp }}\qodana\results --cache-dir ${{ runner.temp }}\qodana\cache

- name: Qodana Scan
uses: JetBrains/qodana-action@v2024.3.3
continue-on-error: true
Expand All @@ -73,9 +66,8 @@ jobs:
pr-mode: false
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}

- uses: github/codeql-action/upload-sarif@v3
if: always()
continue-on-error: true
with:
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
packages/*

CollapseLauncher/Deps/*
CollapseLauncher/StaticLib/*.lib
CollapseLauncher/StaticLib/**/*.lib
CollapseLauncher/Invoker/*
**/Generated Files/**
*.psd
Expand Down
75 changes: 50 additions & 25 deletions CollapseLauncher/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:animatedvisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals"
xmlns:controls="using:Microsoft.UI.Xaml.Controls"
xmlns:conv="using:CollapseLauncher.Pages"
xmlns:interactions="using:Microsoft.Xaml.Interactions.Core"
xmlns:interactivity="using:Microsoft.Xaml.Interactivity"
xmlns:controls="using:Microsoft.UI.Xaml.Controls"
xmlns:primitives="using:Microsoft.UI.Xaml.Controls.Primitives"
xmlns:ui="using:Windows.UI">
<!-- ReSharper disable Xaml.InvalidResourceType -->
Expand Down Expand Up @@ -2190,13 +2189,13 @@
<!-- Force ShouldConstrainToRootBounds to True -->
<!-- Fix https://github.com/microsoft/microsoft-ui-xaml/issues/8657 -->
<interactivity:Interaction.Behaviors>
<interactions:DataTriggerBehavior Binding="{Binding ShouldConstrainToRootBounds, ElementName=Popup}"
ComparisonCondition="Equal"
Value="False">
<interactions:ChangePropertyAction PropertyName="ShouldConstrainToRootBounds"
TargetObject="{Binding ElementName=Popup}"
Value="True" />
</interactions:DataTriggerBehavior>
<interactivity:DataTriggerBehavior Binding="{Binding ShouldConstrainToRootBounds, ElementName=Popup}"
ComparisonCondition="Equal"
Value="False">
<interactivity:ChangePropertyAction PropertyName="ShouldConstrainToRootBounds"
TargetObject="{Binding ElementName=Popup}"
Value="True" />
</interactivity:DataTriggerBehavior>
</interactivity:Interaction.Behaviors>
<Border x:Name="PopupBorder"
Margin="0,-0.5,0,-1"
Expand Down Expand Up @@ -2627,13 +2626,13 @@
<!-- Force ShouldConstrainToRootBounds to True -->
<!-- Fix https://github.com/microsoft/microsoft-ui-xaml/issues/8657 -->
<interactivity:Interaction.Behaviors>
<interactions:DataTriggerBehavior Binding="{Binding ShouldConstrainToRootBounds, ElementName=Popup}"
ComparisonCondition="Equal"
Value="False">
<interactions:ChangePropertyAction PropertyName="ShouldConstrainToRootBounds"
TargetObject="{Binding ElementName=Popup}"
Value="True" />
</interactions:DataTriggerBehavior>
<interactivity:DataTriggerBehavior Binding="{Binding ShouldConstrainToRootBounds, ElementName=Popup}"
ComparisonCondition="Equal"
Value="False">
<interactivity:ChangePropertyAction PropertyName="ShouldConstrainToRootBounds"
TargetObject="{Binding ElementName=Popup}"
Value="True" />
</interactivity:DataTriggerBehavior>
</interactivity:Interaction.Behaviors>
<Border x:Name="PopupBorder"
Margin="0,-0.5,0,-1"
Expand Down Expand Up @@ -5019,7 +5018,8 @@
</Style>

<!-- PipsPager styles -->
<Style x:Key="DefaultPipsPagerStyle" TargetType="controls:PipsPager">
<Style x:Key="DefaultPipsPagerStyle"
TargetType="controls:PipsPager">
<Setter Property="Background" Value="Transparent" />
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="VerticalAlignment" Value="Top" />
Expand All @@ -5031,7 +5031,9 @@
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="controls:PipsPager">
<StackPanel x:Name="RootPanel" Orientation="{TemplateBinding Orientation}" Background="{TemplateBinding Background}">
<StackPanel x:Name="RootPanel"
Background="{TemplateBinding Background}"
Orientation="{TemplateBinding Orientation}">

<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="PreviousPageButtonVisibilityStates">
Expand Down Expand Up @@ -5112,9 +5114,23 @@
</VisualStateGroup>

</VisualStateManager.VisualStateGroups>
<Button x:Name="PreviousPageButton" ToolTipService.ToolTip="{Binding ElementName=PreviousPageButton, Path=(AutomationProperties.Name)}" ToolTipService.Placement="Top" Style="{TemplateBinding PreviousButtonStyle}" HorizontalAlignment="Center" VerticalAlignment="Center" />
<ScrollViewer x:Name="PipsPagerScrollViewer" VerticalScrollBarVisibility="Hidden" VerticalScrollMode="Disabled" HorizontalScrollBarVisibility="Hidden" HorizontalScrollMode="Disabled" IsHorizontalScrollChainingEnabled="False" IsVerticalScrollChainingEnabled="False" HorizontalAlignment="Center" VerticalAlignment="Center">
<controls:ItemsRepeater x:Name="PipsPagerItemsRepeater" ItemsSource="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.PipsPagerItems}">
<Button x:Name="PreviousPageButton"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Style="{TemplateBinding PreviousButtonStyle}"
ToolTipService.Placement="Top"
ToolTipService.ToolTip="{Binding ElementName=PreviousPageButton, Path=(AutomationProperties.Name)}" />
<ScrollViewer x:Name="PipsPagerScrollViewer"
HorizontalAlignment="Center"
VerticalAlignment="Center"
HorizontalScrollBarVisibility="Hidden"
HorizontalScrollMode="Disabled"
IsHorizontalScrollChainingEnabled="False"
IsVerticalScrollChainingEnabled="False"
VerticalScrollBarVisibility="Hidden"
VerticalScrollMode="Disabled">
<controls:ItemsRepeater x:Name="PipsPagerItemsRepeater"
ItemsSource="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.PipsPagerItems}">
<controls:ItemsRepeater.Layout>
<controls:StackLayout Orientation="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Orientation}" />
</controls:ItemsRepeater.Layout>
Expand All @@ -5125,20 +5141,29 @@
</controls:ItemsRepeater.ItemTemplate>
</controls:ItemsRepeater>
</ScrollViewer>
<Button x:Name="NextPageButton" ToolTipService.ToolTip="{Binding ElementName=NextPageButton, Path=(AutomationProperties.Name)}" ToolTipService.Placement="Bottom" Style="{TemplateBinding NextButtonStyle}" HorizontalAlignment="Center" VerticalAlignment="Center" />
<Button x:Name="NextPageButton"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Style="{TemplateBinding NextButtonStyle}"
ToolTipService.Placement="Bottom"
ToolTipService.ToolTip="{Binding ElementName=NextPageButton, Path=(AutomationProperties.Name)}" />
</StackPanel>

</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style BasedOn="{StaticResource DefaultPipsPagerStyle}" TargetType="controls:PipsPager" />
<Style BasedOn="{StaticResource DefaultPipsPagerStyle}"
TargetType="controls:PipsPager" />

<!-- Pivot styles -->
<Style x:Key="ThinPivotHeaderItemStyle" TargetType="PivotHeaderItem" BasedOn="{StaticResource DefaultPivotHeaderItemStyle}">
<Style x:Key="ThinPivotHeaderItemStyle"
BasedOn="{StaticResource DefaultPivotHeaderItemStyle}"
TargetType="PivotHeaderItem">
<Setter Property="Height" Value="30" />
</Style>
<Style BasedOn="{StaticResource ThinPivotHeaderItemStyle}" TargetType="PivotHeaderItem" />
<Style BasedOn="{StaticResource ThinPivotHeaderItemStyle}"
TargetType="PivotHeaderItem" />
<Thickness x:Key="PivotNavButtonMargin">0,-6,0,0</Thickness>
</ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
Expand Down
14 changes: 10 additions & 4 deletions CollapseLauncher/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,26 @@
using Windows.UI;
using static CollapseLauncher.InnerLauncherConfig;
using static Hi3Helper.Logger;
// ReSharper disable SwitchStatementMissingSomeEnumCasesNoDefault
// ReSharper disable CommentTypo
// ReSharper disable StringLiteralTypo

namespace CollapseLauncher
{
public partial class App
{
public static bool IsAppKilled = false;
// TODO: #671 This App.IsAppKilled will be replaced with cancellable-awaitable event
// to ensure no hot-exit being called before all background tasks
// hasn't being cancelled.
// public static bool IsAppKilled { get; set; } = false;

public App()
{
if (DebugSettings != null)
{
#if ENABLEFRAMECOUNTER
#if ENABLEFRAMECOUNTER
DebugSettings.EnableFrameRateCounter = true;
#endif
#endif
#if DEBUG
DebugSettings.LayoutCycleDebugBreakLevel = LayoutCycleDebugBreakLevel.High;
DebugSettings.LayoutCycleTracingLevel = LayoutCycleTracingLevel.High;
Expand Down Expand Up @@ -68,7 +74,7 @@ public App()
RequestedTheme = IsAppThemeLight ? ApplicationTheme.Light : ApplicationTheme.Dark;
PInvoke.SetPreferredAppMode(PInvoke.ShouldAppsUseDarkMode() ? PreferredAppMode.AllowDark : PreferredAppMode.Default);

this.InitializeComponent();
InitializeComponent();
}

protected override void OnLaunched(LaunchActivatedEventArgs args)
Expand Down
Loading
Loading