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

View File

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