Merge pull request #814 from erri120/game-registry-fixes

Fixed F03 registry entry
This commit is contained in:
Timothy Baldridge 2020-05-09 15:22:34 -07:00 committed by GitHub
commit 3c398b617d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions

View File

@ -260,14 +260,13 @@ namespace Wabbajack.Common
Game = Game.Fallout3,
NexusName = "fallout3",
NexusGameId = 120,
MO2Name = "fallout3",
MO2Name = "Fallout 3",
MO2ArchiveName = "fallout3",
SteamIDs = new List<int> {22300, 22370}, // base game and GotY
GOGIDs = new List<int>{1454315831}, // GotY edition
RequiredFiles = new List<string>
{
"falloutlauncher.exe",
"data\\fallout3.esm"
"Fallout3.exe"
},
MainExecutable = "Fallout3.exe"
}

View File

@ -162,11 +162,7 @@ namespace Wabbajack.Common.StoreHandlers
if (!gotID || !game.Path.IsDirectory) return;
var gameMeta = GameRegistry.Games.Values.FirstOrDefault(g =>
{
return (g.SteamIDs?.Contains(game.ID) ?? false)
&& (g.RequiredFiles?.TrueForAll(file => game.Path.Combine(file).Exists) ?? true);
});
var gameMeta = GameRegistry.Games.Values.FirstOrDefault(g => g.SteamIDs?.Contains(game.ID) ?? false);
if (gameMeta == null)
{