Skip to content

Commit ffeca7e

Browse files
Merge pull request #57 from KrystianLesniak/develop
Release: 1.9.2
2 parents 38d247b + 6bd3b8a commit ffeca7e

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

src/GamesLauncher.Common/GamesLauncher.Common.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
<ItemGroup>
16-
<PackageReference Include="Flow.Launcher.Plugin" Version="4.1.1" />
16+
<PackageReference Include="Flow.Launcher.Plugin" Version="4.4.0" />
1717
</ItemGroup>
1818

1919
</Project>

src/GamesLauncher.Platforms/SyncEngines/Steam/SteamSyncEngine.cs

+12-3
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,21 @@ private Func<Task> GetSteamDeleteTask(string gameAppIdString)
8282
private static string GetIconPath(SteamGame game)
8383
{
8484
var appIdString = game.AppId.ToString().Trim();
85-
var iconCachePath = Path.Combine(game.SteamPath.ToString(), "appcache", "librarycache", $"{appIdString}_icon.jpg");
85+
var iconCachePath = Path.Combine(game.SteamPath.ToString(), "appcache", "librarycache", appIdString);
8686

87-
if (!File.Exists(iconCachePath))
87+
if(!Directory.Exists(iconCachePath))
8888
return Path.Combine("Icons", "steam.png");
8989

90-
return iconCachePath;
90+
var files = Directory
91+
.GetFiles(iconCachePath, "*.jpg", SearchOption.TopDirectoryOnly)
92+
.Where(file => {
93+
string fileName = Path.GetFileName(file);
94+
return !fileName.StartsWith("header", StringComparison.OrdinalIgnoreCase) &&
95+
!fileName.StartsWith("library", StringComparison.OrdinalIgnoreCase) &&
96+
!fileName.StartsWith("logo", StringComparison.OrdinalIgnoreCase);
97+
});
98+
99+
return files.FirstOrDefault() ?? Path.Combine("Icons", "steam.png");
91100
}
92101
}
93102
}

src/GamesLauncher/GamesLauncher.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</ItemGroup>
3434

3535
<ItemGroup>
36-
<PackageReference Include="Flow.Launcher.Plugin" Version="4.1.1" />
36+
<PackageReference Include="Flow.Launcher.Plugin" Version="4.4.0" />
3737
</ItemGroup>
3838

3939
<ItemGroup>

src/GamesLauncher/plugin.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Name": "GamesLauncher",
55
"Description": "Search and launch games from multiple platforms like Steam, Epic Games, Xbox etc.",
66
"Author": "KrystianLesniak",
7-
"Version": "1.9.1",
7+
"Version": "1.9.2",
88
"Language": "csharp",
99
"Website": "https://github.com/KrystianLesniak/Flow.Launcher.Plugin.GamesLauncher",
1010
"IcoPath": "icon.png",

0 commit comments

Comments
 (0)