Fix for GOG handler checking steam IDs instead of GOG IDs

This commit is contained in:
Justin Swanson 2020-01-04 18:38:16 -06:00
parent ad6f398fcf
commit d4a7bc5ae4

View File

@ -106,12 +106,10 @@ namespace Wabbajack.Common.StoreHandlers
var gameMeta = GameRegistry.Games.Values.FirstOrDefault(g =>
{
return g.GOGIDs != null
&& (g.SteamIDs?.Contains(gameID) ?? false)
&& (g.RequiredFiles?.TrueForAll(file => File.Exists(Path.Combine(game.Path, file))) ??
true);
return (g.GOGIDs?.Contains(gameID) ?? false)
&& (g.RequiredFiles?.TrueForAll(file => File.Exists(Path.Combine(game.Path, file))) ?? true);
});
if (gameMeta == null)
{
Utils.Log($"GOG Game \"{gameName}\"({gameID}) is not supported, skipping");