Re-added Morrowind

This commit is contained in:
erri120 2019-11-18 20:31:55 +01:00
parent 50bbd0eb1f
commit fbb90d698e
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135
2 changed files with 15 additions and 5 deletions

View File

@ -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<string> AdditionalFolders { get; internal set; }
// file to check if the game is present, useful when steamIds and gogIds dont help
public List<string> RequiredFiles { get; internal set; }
public bool Disabled { get; internal set; }
public string GameLocation
{
@ -89,9 +90,18 @@ namespace Wabbajack.Common
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
{

View File

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