Skip to content

Commit

Permalink
change service in gacha log page
Browse files Browse the repository at this point in the history
  • Loading branch information
Scighost committed Jul 2, 2024
1 parent 8a9ab69 commit 3697b5a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Starward/Pages/GachaLogPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -43,7 +43,7 @@ public sealed partial class GachaLogPage : PageBase

private readonly ILogger<GachaLogPage> _logger = AppConfig.GetLogger<GachaLogPage>();

private readonly GameResourceService _gameResourceService = AppConfig.GetService<GameResourceService>();
private readonly GameLauncherService _gameLauncherService = AppConfig.GetService<GameLauncherService>();

private GachaLogService _gachaLogService;

Expand Down Expand Up @@ -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))
{
// 游戏未安装
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 3697b5a

Please sign in to comment.