Merge pull request #160 from erri120/oblivion-mo2archive-fix

Changed Oblivion MO2ArchiveName to lowercase
This commit is contained in:
erri120 2019-11-09 15:48:41 +01:00 committed by GitHub
commit f464ff6146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,22 +50,22 @@ namespace Wabbajack.Common
public static GameMetaData GetByMO2ArchiveName(string gameName) public static GameMetaData GetByMO2ArchiveName(string gameName)
{ {
var gamename = gameName.ToLower(); var gamename = gameName.ToLower();
return Games.Values.FirstOrDefault(g => g.MO2ArchiveName == gamename); return Games.Values.FirstOrDefault(g => g.MO2ArchiveName?.ToLower() == gamename);
} }
public static Dictionary<Game, GameMetaData> Games = new Dictionary<Game, GameMetaData> public static Dictionary<Game, GameMetaData> Games = new Dictionary<Game, GameMetaData>
{ {
{ /*{
Game.Morrowind, new GameMetaData() Game.Morrowind, new GameMetaData()
}, },*/
{ {
Game.Oblivion, new GameMetaData Game.Oblivion, new GameMetaData
{ {
Game = Game.Oblivion, Game = Game.Oblivion,
NexusName = "oblivion", NexusName = "oblivion",
MO2Name = "Oblivion", MO2Name = "Oblivion",
MO2ArchiveName = "Oblivion", MO2ArchiveName = "oblivion",
GameLocationRegistryKey = @"HKEY_LOCAL_MACHINE\SOFTWARE\Bethesda Softworks\Oblivion" GameLocationRegistryKey = @"HKEY_LOCAL_MACHINE\SOFTWARE\Bethesda Softworks\Oblivion"
} }
}, },