Update SteamLibrary.cs

This commit is contained in:
pointfeev 2023-05-30 13:40:21 -04:00 committed by GitHub
parent e333483b8f
commit 2fbb792a5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,9 +31,8 @@ internal static class SteamLibrary
if (Program.Canceled) if (Program.Canceled)
return games; return games;
foreach ((string appId, string name, string branch, int buildId, string gameDirectory) game in await GetGamesFromLibraryDirectory( foreach ((string appId, string name, string branch, int buildId, string gameDirectory) game in await GetGamesFromLibraryDirectory(
libraryDirectory)) libraryDirectory).Where(game => !games.Any(_game => _game.appId == game.appId && _game.gameDirectory == game.gameDirectory)))
if (!games.Any(_game => _game.appId == game.appId && _game.gameDirectory == game.gameDirectory)) games.Add(game);
games.Add(game);
} }
return games; return games;
}); });
@ -109,4 +108,4 @@ internal static class SteamLibrary
} }
return gameDirectories; return gameDirectories;
}); });
} }