diff --git a/RemoteDownloaderPlugin/Game/InstalledGame.cs b/RemoteDownloaderPlugin/Game/InstalledGame.cs index 8d08c41..da4259c 100644 --- a/RemoteDownloaderPlugin/Game/InstalledGame.cs +++ b/RemoteDownloaderPlugin/Game/InstalledGame.cs @@ -23,7 +23,7 @@ public bool HasImage(ImageType type) if (url == null) return Task.FromResult(null); - return Storage.Cache($"{Game.Id}_{type}", () => Storage.ImageDownload(url)); + return Storage.Cache($"{Game.Id}_{type}.jpg", () => Storage.ImageDownload(url)); } public InstalledStatus InstalledStatus => InstalledStatus.Installed; @@ -32,6 +32,10 @@ public bool HasImage(ImageType type) ? LauncherGamePlugin.Utils.GuessPlatformBasedOnString(_plugin.Storage.Data.EmuProfiles.FirstOrDefault(x => x.Platform == _emuGame!.Emu)?.ExecPath) : LauncherGamePlugin.Utils.GuessPlatformBasedOnString(_pcLaunchDetails!.LaunchExec); + public string GamePlatform => (_type == GameType.Emu) + ? _emuGame!.Emu + : "Pc"; + public ProgressStatus? ProgressStatus => null; public event Action? OnUpdate; diff --git a/RemoteDownloaderPlugin/Game/OnlineGame.cs b/RemoteDownloaderPlugin/Game/OnlineGame.cs index a7d082d..96ed2cb 100644 --- a/RemoteDownloaderPlugin/Game/OnlineGame.cs +++ b/RemoteDownloaderPlugin/Game/OnlineGame.cs @@ -23,7 +23,7 @@ public bool HasImage(ImageType type) if (url == null) return Task.FromResult(null); - return Storage.Cache($"{Entry.GameId}_{type}", () => Storage.ImageDownload(url)); + return Storage.Cache($"{Entry.GameId}_{type}.jpg", () => Storage.ImageDownload(url)); } public InstalledStatus InstalledStatus => InstalledStatus.NotInstalled; diff --git a/RemoteDownloaderPlugin/Plugin.cs b/RemoteDownloaderPlugin/Plugin.cs index f38dc36..ce952e6 100644 --- a/RemoteDownloaderPlugin/Plugin.cs +++ b/RemoteDownloaderPlugin/Plugin.cs @@ -60,6 +60,7 @@ public List GetGameCommands(IGame game) new Command(game.IsRunning ? "Running" : "Launch", installedGame.Play), new Command("Open in File Manager", installedGame.OpenInFileManager), new Command($"Version: {installedGame.Game.Version}"), + new Command($"Platform: {installedGame.GamePlatform}"), new Command("Uninstall", () => App.Show2ButtonTextPrompt($"Do you want to uninstall {game.Name}?", "Yes", "No", _ => {