Skip to content

Commit ac17470

Browse files
committed
Fetching games now upserts, resolving exception
1 parent 49e393b commit ac17470

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

KuruExtract/Steam/SteamLibrary.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ public static string? InstallPath
1818
}
1919
}
2020

21-
public static Dictionary<int, SteamGame> Games { get; } = new();
21+
public static Dictionary<int, SteamGame> Games { get; } = [];
2222

2323
public static void FetchGames()
2424
{
2525
var gameLibraryDirectories = GetLibraryDirectories();
2626
foreach (var game in gameLibraryDirectories.Select(GetGamesFromLibrary).SelectMany(games => games))
2727
{
28-
Games.Add(game.AppId, game);
28+
Games[game.AppId] = game;
2929
}
3030
}
3131

0 commit comments

Comments
 (0)