/// <summary> /// Loads the XML file, deserializes every mod, and adds it to the list. /// </summary> public void Load() { this.Mods.Clear(); this.Resources.Clear(); if (!GameInstance.ValidateGamePath(GamePath)) { return; } if (!File.Exists(XMLPath)) { return; } XDocument xmlDoc = XDocument.Load(XMLPath); this.Mods = Deserialize(xmlDoc); this.Resources = ResourceList.FromTXT(ResourcesPath); this.Resources.AssociateTweak(ResourceListTweak.GetDefaultList()); }
public static ResourceList GetDefaultList() { return(ResourceList.FromTweak( ResourceListTweak.GetDefaultList() )); }