From 12a752723c35d36b130a01c9fbfde22e7a8c244e Mon Sep 17 00:00:00 2001 From: Scighost Date: Sun, 21 May 2023 19:48:41 +0800 Subject: [PATCH] enable some compile feature --- Starward/AppConfig.cs | 10 ++++++++++ Starward/Starward.csproj | 3 +++ Starward/UI/LauncherPage.xaml.cs | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Starward/AppConfig.cs b/Starward/AppConfig.cs index b7b487dbd..900932245 100644 --- a/Starward/AppConfig.cs +++ b/Starward/AppConfig.cs @@ -309,6 +309,16 @@ public static void SetStartArgument(GameBiz biz, string? value) + public static string? GetLastUidInGachaLogPage(GameBiz biz) + { + return GetValue(default, $"last_gacha_uid_{biz}"); + } + + public static void SetLastUidInGachaLogPage(GameBiz biz, int value) + { + SetValue(value, $"last_gacha_uid_{biz}"); + } + diff --git a/Starward/Starward.csproj b/Starward/Starward.csproj index 42f3c5f11..bb4902d58 100644 --- a/Starward/Starward.csproj +++ b/Starward/Starward.csproj @@ -15,6 +15,9 @@ None true true + true + true + true diff --git a/Starward/UI/LauncherPage.xaml.cs b/Starward/UI/LauncherPage.xaml.cs index e6c676817..b9cf73709 100644 --- a/Starward/UI/LauncherPage.xaml.cs +++ b/Starward/UI/LauncherPage.xaml.cs @@ -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);