From fbb90d698ee4db8ed0c5edd64da1740a0000abd1 Mon Sep 17 00:00:00 2001 From: erri120 Date: Mon, 18 Nov 2019 20:31:55 +0100 Subject: [PATCH] Re-added Morrowind --- Wabbajack.Common/GameMetaData.cs | 18 ++++++++++++++---- .../View Models/Compilers/VortexCompilerVM.cs | 2 +- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Wabbajack.Common/GameMetaData.cs b/Wabbajack.Common/GameMetaData.cs index 4d4a470b..ffbc8015 100644 --- a/Wabbajack.Common/GameMetaData.cs +++ b/Wabbajack.Common/GameMetaData.cs @@ -9,7 +9,7 @@ namespace Wabbajack.Common public enum Game { //MO2 GAMES - //Morrowind, + Morrowind, Oblivion, [Description("Fallout 3")] Fallout3, @@ -57,6 +57,7 @@ namespace Wabbajack.Common public List AdditionalFolders { get; internal set; } // file to check if the game is present, useful when steamIds and gogIds dont help public List RequiredFiles { get; internal set; } + public bool Disabled { get; internal set; } public string GameLocation { @@ -89,9 +90,18 @@ namespace Wabbajack.Common public static IReadOnlyDictionary Games = new Dictionary { - /*{ - Game.Morrowind, new GameMetaData() - },*/ + { + Game.Morrowind, new GameMetaData + { + SupportedModManager = ModManager.MO2, + Game = Game.Morrowind, + Disabled = true, + SteamIDs = new List{0}, + NexusName = "morrowind", + MO2Name = "Morrowind", + MO2ArchiveName = "morrowind" + } + }, { Game.Oblivion, new GameMetaData { diff --git a/Wabbajack/View Models/Compilers/VortexCompilerVM.cs b/Wabbajack/View Models/Compilers/VortexCompilerVM.cs index 289f2528..8d713e1d 100644 --- a/Wabbajack/View Models/Compilers/VortexCompilerVM.cs +++ b/Wabbajack/View Models/Compilers/VortexCompilerVM.cs @@ -26,7 +26,7 @@ namespace Wabbajack private static readonly ObservableCollectionExtended _gameOptions = new ObservableCollectionExtended( EnumExt.GetValues() - .Where(g => GameRegistry.Games[g].SupportedModManager == ModManager.Vortex) + .Where(g => GameRegistry.Games[g].SupportedModManager == ModManager.Vortex && !GameRegistry.Games[g].Disabled) .Select(g => new GameVM(g)) .OrderBy(g => g.DisplayName));