Exemple #1
0
        /// <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");
            }
        }
Exemple #2
0
 /// <summary>
 /// Apply the settings to game files.
 /// </summary>
 public void Apply()
 {
     JsonPathList.ToFile(rawSettings, SettingsPath);
 }