mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Merge pull request #814 from erri120/game-registry-fixes
Fixed F03 registry entry
This commit is contained in:
commit
3c398b617d
@ -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"
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user