public void LoadConfigs() { if (ConfigIO.CheckForSettingsConfig()) { //WriteToConsole("Config for settings found"); ConfigHolder.SetProcessPath((string)Properties.Settings.Default["processPath"]); ConfigHolder.killNonRespProcess = (bool)Properties.Settings.Default["killNonRespProcess"]; ConfigHolder.startServerOnStartup = (bool)Properties.Settings.Default["startServerOnStartup"]; } if (ConfigIO.CheckForParametersConfig()) { //WriteToConsole("Config for parameters found"); ConfigHolder.SetParameters(ConfigIO.LoadParameters()); } else { //WriteToConsole("Config for parameters not found. Creating a new config..."); } if (ConfigIO.CheckForModsConfig()) { //WriteToConsole("Config for mods found"); ConfigHolder.SetMods(ConfigIO.LoadMods()); } else { //WriteToConsole("Config for mods not found. Creating a new config..."); } }
public void RemoveAllMods() { ConfigHolder.SetMods(new System.Collections.ArrayList()); ConfigIO.WriteMods(ConfigHolder.GetMods()); }