Merge pull request #190 from erri120/add-morrowind

Re-added Morrowind
This commit is contained in:
Timothy Baldridge 2019-11-18 14:42:23 -07:00 committed by GitHub
commit 549d32579c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 5 deletions

View File

@ -9,7 +9,7 @@ namespace Wabbajack.Common
public enum Game public enum Game
{ {
//MO2 GAMES //MO2 GAMES
//Morrowind, Morrowind,
Oblivion, Oblivion,
[Description("Fallout 3")] [Description("Fallout 3")]
Fallout3, Fallout3,
@ -57,6 +57,7 @@ namespace Wabbajack.Common
public List<string> AdditionalFolders { get; internal set; } public List<string> AdditionalFolders { get; internal set; }
// file to check if the game is present, useful when steamIds and gogIds dont help // file to check if the game is present, useful when steamIds and gogIds dont help
public List<string> RequiredFiles { get; internal set; } public List<string> RequiredFiles { get; internal set; }
public bool Disabled { get; internal set; }
public string GameLocation public string GameLocation
{ {
@ -89,9 +90,18 @@ namespace Wabbajack.Common
public static IReadOnlyDictionary<Game, GameMetaData> Games = new Dictionary<Game, GameMetaData> public static IReadOnlyDictionary<Game, GameMetaData> Games = new Dictionary<Game, GameMetaData>
{ {
/*{ {
Game.Morrowind, new GameMetaData() Game.Morrowind, new GameMetaData
},*/ {
SupportedModManager = ModManager.MO2,
Game = Game.Morrowind,
Disabled = true,
SteamIDs = new List<int>{0},
NexusName = "morrowind",
MO2Name = "Morrowind",
MO2ArchiveName = "morrowind"
}
},
{ {
Game.Oblivion, new GameMetaData Game.Oblivion, new GameMetaData
{ {

View File

@ -26,7 +26,7 @@ namespace Wabbajack
private static readonly ObservableCollectionExtended<GameVM> _gameOptions = new ObservableCollectionExtended<GameVM>( private static readonly ObservableCollectionExtended<GameVM> _gameOptions = new ObservableCollectionExtended<GameVM>(
EnumExt.GetValues<Game>() EnumExt.GetValues<Game>()
.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)) .Select(g => new GameVM(g))
.OrderBy(g => g.DisplayName)); .OrderBy(g => g.DisplayName));