/// <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); }
/// <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); } }
/// <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); } }