Fixed F03 registry entry

This commit is contained in:
erri120 2020-05-09 20:02:49 +02:00
parent 61e0d22973
commit c79ad8e08b
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135
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)
{