From 7f0129e83b457ca644b091b54fdbf5189e65f2e0 Mon Sep 17 00:00:00 2001 From: erri120 Date: Sat, 9 Nov 2019 15:21:31 +0100 Subject: [PATCH 1/4] Changed Oblivion MO2ArchiveName to lowercase --- Wabbajack.Common/GameMetaData.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wabbajack.Common/GameMetaData.cs b/Wabbajack.Common/GameMetaData.cs index 01594316..66a929a3 100644 --- a/Wabbajack.Common/GameMetaData.cs +++ b/Wabbajack.Common/GameMetaData.cs @@ -65,7 +65,7 @@ namespace Wabbajack.Common Game = Game.Oblivion, NexusName = "oblivion", MO2Name = "Oblivion", - MO2ArchiveName = "Oblivion", + MO2ArchiveName = "oblivion", GameLocationRegistryKey = @"HKEY_LOCAL_MACHINE\SOFTWARE\Bethesda Softworks\Oblivion" } }, From 36867a480689c025c5ec22809cbb7a7bc1e7e1a9 Mon Sep 17 00:00:00 2001 From: erri120 Date: Sat, 9 Nov 2019 15:25:29 +0100 Subject: [PATCH 2/4] MO2ArchiveName will be lowercase when comparing in GetByMO2ArchiveName --- Wabbajack.Common/GameMetaData.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wabbajack.Common/GameMetaData.cs b/Wabbajack.Common/GameMetaData.cs index 66a929a3..46fd1605 100644 --- a/Wabbajack.Common/GameMetaData.cs +++ b/Wabbajack.Common/GameMetaData.cs @@ -50,7 +50,7 @@ namespace Wabbajack.Common public static GameMetaData GetByMO2ArchiveName(string gameName) { var gamename = gameName.ToLower(); - return Games.Values.FirstOrDefault(g => g.MO2ArchiveName == gamename); + return Games.Values.FirstOrDefault(g => g.MO2ArchiveName.ToLower() == gamename); } From 467cfc47a03c2da439cbb983607cd96a2a98e7f3 Mon Sep 17 00:00:00 2001 From: erri120 Date: Sat, 9 Nov 2019 15:40:14 +0100 Subject: [PATCH 3/4] Removed Morrowind from the Games list --- Wabbajack.Common/GameMetaData.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Wabbajack.Common/GameMetaData.cs b/Wabbajack.Common/GameMetaData.cs index 46fd1605..c32f09ee 100644 --- a/Wabbajack.Common/GameMetaData.cs +++ b/Wabbajack.Common/GameMetaData.cs @@ -56,9 +56,9 @@ namespace Wabbajack.Common public static Dictionary Games = new Dictionary { - { + /*{ Game.Morrowind, new GameMetaData() - }, + },*/ { Game.Oblivion, new GameMetaData { From 83807a56b80977ccef0ddd10546b75603b85acda Mon Sep 17 00:00:00 2001 From: erri120 Date: Sat, 9 Nov 2019 15:40:50 +0100 Subject: [PATCH 4/4] Added null check to GetByMO2ArchiveName --- Wabbajack.Common/GameMetaData.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wabbajack.Common/GameMetaData.cs b/Wabbajack.Common/GameMetaData.cs index c32f09ee..34b3cf13 100644 --- a/Wabbajack.Common/GameMetaData.cs +++ b/Wabbajack.Common/GameMetaData.cs @@ -50,7 +50,7 @@ namespace Wabbajack.Common public static GameMetaData GetByMO2ArchiveName(string gameName) { var gamename = gameName.ToLower(); - return Games.Values.FirstOrDefault(g => g.MO2ArchiveName.ToLower() == gamename); + return Games.Values.FirstOrDefault(g => g.MO2ArchiveName?.ToLower() == gamename); }