From 960ee58dd9bcffa4af1fc99e374ea8a9273a2e2d Mon Sep 17 00:00:00 2001 From: "krystian.lesniak" Date: Thu, 23 Jan 2025 10:48:30 +0100 Subject: [PATCH 1/3] Fix: Steam: Location of games icon in Steam has changed --- .../SyncEngines/Steam/SteamSyncEngine.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/GamesLauncher.Platforms/SyncEngines/Steam/SteamSyncEngine.cs b/src/GamesLauncher.Platforms/SyncEngines/Steam/SteamSyncEngine.cs index 33007b3..62f6f27 100644 --- a/src/GamesLauncher.Platforms/SyncEngines/Steam/SteamSyncEngine.cs +++ b/src/GamesLauncher.Platforms/SyncEngines/Steam/SteamSyncEngine.cs @@ -82,12 +82,21 @@ private Func GetSteamDeleteTask(string gameAppIdString) private static string GetIconPath(SteamGame game) { var appIdString = game.AppId.ToString().Trim(); - var iconCachePath = Path.Combine(game.SteamPath.ToString(), "appcache", "librarycache", $"{appIdString}_icon.jpg"); + var iconCachePath = Path.Combine(game.SteamPath.ToString(), "appcache", "librarycache", appIdString); - if (!File.Exists(iconCachePath)) + if(!Directory.Exists(iconCachePath)) return Path.Combine("Icons", "steam.png"); - return iconCachePath; + var files = Directory + .GetFiles(iconCachePath, "*.jpg", SearchOption.TopDirectoryOnly) + .Where(file => { + string fileName = Path.GetFileName(file); + return !fileName.StartsWith("header", StringComparison.OrdinalIgnoreCase) && + !fileName.StartsWith("library", StringComparison.OrdinalIgnoreCase) && + !fileName.StartsWith("logo", StringComparison.OrdinalIgnoreCase); + }); + + return files.FirstOrDefault() ?? Path.Combine("Icons", "steam.png"); } } } From 30cd4bc6644e2073f7b7b6812291ff854fdcbec6 Mon Sep 17 00:00:00 2001 From: "krystian.lesniak" Date: Sat, 25 Jan 2025 11:57:08 +0100 Subject: [PATCH 2/3] - Update Flow.Launcher.Plugin version from 4.1.1 to 4.4.0 --- src/GamesLauncher.Common/GamesLauncher.Common.csproj | 2 +- src/GamesLauncher/GamesLauncher.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GamesLauncher.Common/GamesLauncher.Common.csproj b/src/GamesLauncher.Common/GamesLauncher.Common.csproj index 4e2e0e4..6704c10 100644 --- a/src/GamesLauncher.Common/GamesLauncher.Common.csproj +++ b/src/GamesLauncher.Common/GamesLauncher.Common.csproj @@ -13,7 +13,7 @@ - + diff --git a/src/GamesLauncher/GamesLauncher.csproj b/src/GamesLauncher/GamesLauncher.csproj index 815c070..833286a 100644 --- a/src/GamesLauncher/GamesLauncher.csproj +++ b/src/GamesLauncher/GamesLauncher.csproj @@ -33,7 +33,7 @@ - + From 6bd3b8ab1edf6cef85ba75f31ed6c8fab55a8f76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krystian=20Le=C5=9Bniak?= Date: Sat, 25 Jan 2025 11:58:37 +0100 Subject: [PATCH 3/3] Bumped version to 1.9.2 --- src/GamesLauncher/plugin.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GamesLauncher/plugin.json b/src/GamesLauncher/plugin.json index 6ca8c42..32e4d02 100644 --- a/src/GamesLauncher/plugin.json +++ b/src/GamesLauncher/plugin.json @@ -4,7 +4,7 @@ "Name": "GamesLauncher", "Description": "Search and launch games from multiple platforms like Steam, Epic Games, Xbox etc.", "Author": "KrystianLesniak", - "Version": "1.9.1", + "Version": "1.9.2", "Language": "csharp", "Website": "https://github.com/KrystianLesniak/Flow.Launcher.Plugin.GamesLauncher", "IcoPath": "icon.png",