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, Game = Game.Fallout3,
NexusName = "fallout3", NexusName = "fallout3",
NexusGameId = 120, NexusGameId = 120,
MO2Name = "fallout3", MO2Name = "Fallout 3",
MO2ArchiveName = "fallout3", MO2ArchiveName = "fallout3",
SteamIDs = new List<int> {22300, 22370}, // base game and GotY SteamIDs = new List<int> {22300, 22370}, // base game and GotY
GOGIDs = new List<int>{1454315831}, // GotY edition GOGIDs = new List<int>{1454315831}, // GotY edition
RequiredFiles = new List<string> RequiredFiles = new List<string>
{ {
"falloutlauncher.exe", "Fallout3.exe"
"data\\fallout3.esm"
}, },
MainExecutable = "Fallout3.exe" MainExecutable = "Fallout3.exe"
} }

View File

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