/// <summary> /// Load the settings. /// </summary> public void Load() { rawSettings.RemoveAll(); // Clear the settings first rawSettings = JsonPathList.FromFile("DEFAULT_SAVE"); try { rawSettings = JsonPathList.FromFile(SettingsPath, rawSettings); } catch (Exception) { throw new Exception("Could not load the settings file"); } }
/// <summary> /// Apply the settings to game files. /// </summary> public void Apply() { JsonPathList.ToFile(rawSettings, SettingsPath); }