diff --git a/src/Starward/Pages/GachaLogPage.xaml.cs b/src/Starward/Pages/GachaLogPage.xaml.cs index a7a93f84d..94d3e3ed4 100644 --- a/src/Starward/Pages/GachaLogPage.xaml.cs +++ b/src/Starward/Pages/GachaLogPage.xaml.cs @@ -16,8 +16,8 @@ using Starward.Helpers; using Starward.Messages; using Starward.Models; -using Starward.Services; using Starward.Services.Gacha; +using Starward.Services.Launcher; using System; using System.Collections.Generic; using System.Collections.ObjectModel; @@ -43,7 +43,7 @@ public sealed partial class GachaLogPage : PageBase private readonly ILogger _logger = AppConfig.GetLogger(); - private readonly GameResourceService _gameResourceService = AppConfig.GetService(); + private readonly GameLauncherService _gameLauncherService = AppConfig.GetService(); private GachaLogService _gachaLogService; @@ -310,7 +310,7 @@ private async Task UpdateGachaLogAsync(string? param = null) } else { - var path = _gameResourceService.GetGameInstallPath(CurrentGameBiz); + var path = _gameLauncherService.GetGameInstallPath(CurrentGameBiz); if (!Directory.Exists(path)) { // 游戏未安装 @@ -580,7 +580,7 @@ private async Task DeleteGachaCacheFileAsync() { try { - var installPath = _gameResourceService.GetGameInstallPath(CurrentGameBiz); + var installPath = _gameLauncherService.GetGameInstallPath(CurrentGameBiz); if (Directory.Exists(installPath)) { var path = GachaLogClient.GetGachaCacheFilePath(CurrentGameBiz, installPath); @@ -608,7 +608,7 @@ private bool IsGachaCacheFileExists() { try { - var installPath = _gameResourceService.GetGameInstallPath(CurrentGameBiz); + var installPath = _gameLauncherService.GetGameInstallPath(CurrentGameBiz); if (Directory.Exists(installPath)) { var path = GachaLogClient.GetGachaCacheFilePath(CurrentGameBiz, installPath);