Only check GOGID for GOG games until further investigation

This commit is contained in:
erri120 2020-01-08 17:26:07 +01:00
parent 076eb3b69b
commit 01ff7cb093
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135

View File

@ -104,11 +104,7 @@ namespace Wabbajack.Common.StoreHandlers
Path = path
};
var gameMeta = GameRegistry.Games.Values.FirstOrDefault(g =>
{
return (g.GOGIDs?.Contains(gameID) ?? false)
&& (g.RequiredFiles?.TrueForAll(file => File.Exists(Path.Combine(game.Path, file))) ?? true);
});
var gameMeta = GameRegistry.Games.Values.FirstOrDefault(g => (g.GOGIDs?.Contains(gameID) ?? false));
if (gameMeta == null)
{