From 2fbb792a5e92a2df32a981bef67b9b7f5e70a292 Mon Sep 17 00:00:00 2001 From: pointfeev Date: Tue, 30 May 2023 13:40:21 -0400 Subject: [PATCH] Update SteamLibrary.cs --- CreamInstaller/Platforms/Steam/SteamLibrary.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CreamInstaller/Platforms/Steam/SteamLibrary.cs b/CreamInstaller/Platforms/Steam/SteamLibrary.cs index 88b6fec..e4d92de 100644 --- a/CreamInstaller/Platforms/Steam/SteamLibrary.cs +++ b/CreamInstaller/Platforms/Steam/SteamLibrary.cs @@ -31,9 +31,8 @@ internal static class SteamLibrary if (Program.Canceled) return games; foreach ((string appId, string name, string branch, int buildId, string gameDirectory) game in await GetGamesFromLibraryDirectory( - libraryDirectory)) - if (!games.Any(_game => _game.appId == game.appId && _game.gameDirectory == game.gameDirectory)) - games.Add(game); + libraryDirectory).Where(game => !games.Any(_game => _game.appId == game.appId && _game.gameDirectory == game.gameDirectory))) + games.Add(game); } return games; }); @@ -109,4 +108,4 @@ internal static class SteamLibrary } return gameDirectories; }); -} \ No newline at end of file +}