diff --git a/CHANGELOG.md b/CHANGELOG.md index bc56c8bd..12d3793f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ### Changelog +#### Version - 3.0.1.5 - 9/??/2022 +* Fix MO2ArchiveName resolution + #### Version - 3.0.1.4 - 9/21/2022 * Fix several of case sensitive path comparisons, that could result in deleting downloads diff --git a/Wabbajack.DTOs/Game/GameRegistry.cs b/Wabbajack.DTOs/Game/GameRegistry.cs index d27f05cc..45a99eba 100644 --- a/Wabbajack.DTOs/Game/GameRegistry.cs +++ b/Wabbajack.DTOs/Game/GameRegistry.cs @@ -242,6 +242,7 @@ public static class GameRegistry NexusName = "witcher3", NexusGameId = 952, MO2Name = "The Witcher 3: Wild Hunt", + MO2ArchiveName = "witcher3", SteamIDs = new[] {292030, 499450}, // normal and GotY GOGIDs = new[] {1207664643, 1495134320, 1207664663, 1640424747}, // normal, GotY and both in packages @@ -458,8 +459,7 @@ public static class GameRegistry public static GameMetaData? GetByMO2ArchiveName(string gameName) { - gameName = gameName.ToLower(); - return Games.Values.FirstOrDefault(g => g.MO2ArchiveName?.ToLower() == gameName); + return Games.Values.FirstOrDefault(g => (g.MO2ArchiveName ?? g.NexusName)!.Equals(gameName, StringComparison.InvariantCultureIgnoreCase)); } public static GameMetaData? GetByNexusName(string gameName)