Skip to content

Commit

Permalink
Fix: Import of installed Steam games can fail
Browse files Browse the repository at this point in the history
  • Loading branch information
JosefNemec committed Oct 1, 2018
1 parent 3de9869 commit 6caaa41
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion source/Plugins/SteamLibrary/SteamLibrary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,13 @@ internal Dictionary<string, Game> GetInstalledGames()
var libFolder = Path.Combine(folder, "steamapps");
if (Directory.Exists(libFolder))
{
GetInstalledGamesFromFolder(libFolder).ForEach(a => games.Add(a.GameId, a));
GetInstalledGamesFromFolder(libFolder).ForEach(a =>
{
if (!games.ContainsKey(a.GameId))
{
games.Add(a.GameId, a);
}
});
}
else
{
Expand Down

0 comments on commit 6caaa41

Please sign in to comment.