Last minute stuff - Alex
[terminatorX.git] / src / tX_global.c
index 575d02e872bef8b4d965f5f4fb9e766c9f1cda57..28113f4bc1f0ef6419643af803f8593624ecb7ce 100644 (file)
@@ -153,6 +153,7 @@ void set_global_defaults() {
        globals.vu_meter_border_intensity=0.7;
        globals.quit_confirm=1;
        globals.use_realtime=1;
+       globals.auto_assign_midi=0;
 }
 
 int load_globals_xml() {
@@ -251,6 +252,7 @@ int load_globals_xml() {
 
                        restore_int("quit_confirm", globals.quit_confirm);
                        restore_int("use_realtime", globals.use_realtime);
+                       restore_int("auto_assign_midi", globals.auto_assign_midi);
 
 #ifdef USE_ALSA_MIDI_IN
                        if (!elementFound && (xmlStrcmp(cur->name, (xmlChar *) "midi_connections")==0)) {
@@ -367,7 +369,8 @@ void store_globals() {
 
                store_int("quit_confirm", globals.quit_confirm);
                store_int("use_realtime", globals.use_realtime);
-               
+               store_int("auto_assign_midi", globals.auto_assign_midi);
+
 #ifdef USE_ALSA_MIDI_IN
                tX_midiin_store_connections(rc, indent);
 #endif