Merge pull request #374 from erri120/erri120-fixes

Assortment of fixes
This commit is contained in:
Timothy Baldridge 2020-01-09 06:38:56 -08:00 committed by GitHub
commit 27d54a2683
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

View File

@ -143,6 +143,7 @@ namespace Wabbajack.Common
MO2ArchiveName = "oblivion",
GameLocationRegistryKey = @"HKEY_LOCAL_MACHINE\SOFTWARE\Bethesda Softworks\Oblivion",
SteamIDs = new List<int> {22330},
GOGIDs = new List<int>{1458058109},
RequiredFiles = new List<string>
{
"oblivion.exe"
@ -179,6 +180,7 @@ namespace Wabbajack.Common
MO2ArchiveName = "falloutnv",
GameLocationRegistryKey = @"HKEY_LOCAL_MACHINE\SOFTWARE\Bethesda Softworks\falloutnv",
SteamIDs = new List<int> {22380, 22490}, // normal and RU version
GOGIDs = new List<int>{1454587428},
RequiredFiles = new List<string>
{
"FalloutNV.exe"

View File

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

View File

@ -484,6 +484,7 @@ namespace Wabbajack.Lib
new IgnoreGameFiles(this),
new DirectMatch(this),
new IncludeTaggedMods(this, Consts.WABBAJACK_INCLUDE),
new IgnoreGameFiles(this),