Esempio n. 1
0
        public static void Save()
        {
            var ini = new Dictionary <string, Dictionary <string, string> >();

            ini["UI"]    = new Dictionary <string, string>();
            ini["Audio"] = new Dictionary <string, string>();
            ini["MIDI"]  = new Dictionary <string, string>();

            ini["UI"]["DpiScaling"]            = DpiScaling.ToString();
            ini["UI"]["CheckUpdates"]          = CheckUpdates.ToString();
            ini["Audio"]["InstrumentStopTime"] = InstrumentStopTime.ToString();
            ini["MIDI"]["Device"] = MidiDevice;

            Directory.CreateDirectory(GetConfigFilePath());

            IniFile.WriteINI(GetConfigFileName(), ini);
        }