示例#1
0
 /// <summary>
 /// Writes the mod options to its config file.
 /// </summary>
 private void WriteOptions()
 {
     if (options != null)
     {
         // Update from local options
         foreach (var option in optionEntries)
         {
             option.WriteTo(options);
         }
     }
     POptions.WriteSettings(options, path, typeAttr?.IndentOutput ?? false);
 }
示例#2
0
 /// <summary>
 /// Writes the mod options to its config file.
 /// </summary>
 private void WriteOptions()
 {
     if (options != null)
     {
         // Update from local options
         foreach (var catEntries in optionCategories)
         {
             foreach (var option in catEntries.Value)
             {
                 option.WriteTo(options);
             }
         }
         POptions.WriteSettings(options, path, typeAttr?.IndentOutput ?? false);
         handler.OnSaveOptions(options);
     }
 }
示例#3
0
 /// <summary>
 /// Writes the mod options to its config file.
 /// </summary>
 private void WriteOptions()
 {
     if (options != null)
     {
         // Update from local options
         foreach (var catEntries in optionCategories)
         {
             foreach (var option in catEntries.Value)
             {
                 option.WriteTo(options);
             }
         }
         POptions.WriteSettings(options, POptions.GetConfigFilePath(optionsType),
                                configAttr?.IndentOutput ?? false);
         TriggerUpdateOptions(options);
     }
 }