Skip to content

Commit

Permalink
enable some compile feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Scighost committed May 21, 2023
1 parent badf72c commit 12a7527
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Starward/AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,16 @@ public static void SetStartArgument(GameBiz biz, string? value)



public static string? GetLastUidInGachaLogPage(GameBiz biz)
{
return GetValue<string>(default, $"last_gacha_uid_{biz}");
}

public static void SetLastUidInGachaLogPage(GameBiz biz, int value)
{
SetValue(value, $"last_gacha_uid_{biz}");
}




Expand Down
3 changes: 3 additions & 0 deletions Starward/Starward.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
<WindowsPackageType>None</WindowsPackageType>
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<Deterministic>true</Deterministic>
<TieredCompilationQuickJitForLoops>true</TieredCompilationQuickJitForLoops>
<TieredPGO>true</TieredPGO>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Starward/UI/LauncherPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ partial void OnCanStartGameChanged(bool value)

[ObservableProperty]
private string? installPath;
partial void OnInstallPathChanged(string value)
partial void OnInstallPathChanged(string? value)
{
AppConfig.SetGameInstallPath(gameBiz, value);
_logger.LogInformation("Game install path {biz}: {path}", gameBiz, value);
Expand Down

0 comments on commit 12a7527

Please sign in to comment.