Chatterer.chatterer.save_plugin_settings C# (CSharp) Method

save_plugin_settings() private method

private save_plugin_settings ( ) : void
return void
        private void save_plugin_settings()
        {
            //these values are not saved to vessel.cfg ever and are considered global
            //if (debugging) Debug.Log("[CHATR] adding plugin settings to ConfigNode for write");
            plugin_settings_node = new ConfigNode();
            plugin_settings_node.name = "SETTINGS";
            plugin_settings_node.AddValue("debugging", debugging);
            plugin_settings_node.AddValue("use_vessel_settings", use_vessel_settings);
            plugin_settings_node.AddValue("useBlizzy78Toolbar", useBlizzy78Toolbar);
            plugin_settings_node.AddValue("http_update_check", http_update_check);
            plugin_settings_node.AddValue("disable_beeps_during_chatter", disable_beeps_during_chatter);
            plugin_settings_node.AddValue("insta_chatter_key", insta_chatter_key);
            plugin_settings_node.AddValue("insta_sstv_key", insta_sstv_key);
            plugin_settings_node.AddValue("show_advanced_options", show_advanced_options);

            //also save values that are shared between the two configs
            save_shared_settings(plugin_settings_node);

            //save plugin.cfg
            plugin_settings_node.Save(settings_path + "plugin.cfg");
            //if (debugging) Debug.Log("[CHATR] plugin settings saved to disk");
        }
chatterer