X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fpreferences.C;h=5f9d40ea241dc280b8181a5a357ec0b2248fd937;hb=c279e21fc2394a7908bbd1ba8c79b116fe9fb14a;hp=b950b374fad860044b753368c0018bd254ede216;hpb=c2c09a4c97194b07dbd1eae82aa0226d9774f350;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/preferences.C b/cinelerra-5.1/cinelerra/preferences.C index b950b374..5f9d40ea 100644 --- a/cinelerra-5.1/cinelerra/preferences.C +++ b/cinelerra-5.1/cinelerra/preferences.C @@ -63,6 +63,9 @@ Preferences::Preferences() index_count = 500; use_thumbnails = 1; keyframe_reticle = HAIRLINE_DRAGGING; + perpetual_session = 0; + strcpy(lv2_path, DEFAULT_LV2_PATH); + autostart_lv2ui = 0; trap_sigsegv = 1; trap_sigintr = 1; theme[0] = 0; @@ -168,6 +171,7 @@ void Preferences::copy_from(Preferences *that) index_count = that->index_count; use_thumbnails = that->use_thumbnails; keyframe_reticle = that->keyframe_reticle; + perpetual_session = that->perpetual_session; strcpy(theme, that->theme); strcpy(plugin_icons, that->plugin_icons); strcpy(snapshot_path, that->snapshot_path); @@ -186,6 +190,8 @@ void Preferences::copy_from(Preferences *that) cache_size = that->cache_size; project_smp = that->project_smp; force_uniprocessor = that->force_uniprocessor; + strcpy(lv2_path, that->lv2_path); + autostart_lv2ui = that->autostart_lv2ui; trap_sigsegv = that->trap_sigsegv; trap_sigintr = that->trap_sigintr; processors = that->processors; @@ -299,8 +305,11 @@ int Preferences::load_defaults(BC_Hash *defaults) defaults->get("INDEX_DIRECTORY", index_directory); index_size = defaults->get("INDEX_SIZE", index_size); index_count = defaults->get("INDEX_COUNT", index_count); - use_thumbnails = defaults->get("USE_THUMBNAILS", use_thumbnails); keyframe_reticle = defaults->get("KEYFRAME_RETICLE", keyframe_reticle); + perpetual_session = defaults->get("PERPETUAL_SESSION", perpetual_session); + strcpy(lv2_path, DEFAULT_LV2_PATH); + defaults->get("LV2_PATH", lv2_path); + autostart_lv2ui = defaults->get("AUTOSTART_LV2UI", autostart_lv2ui); trap_sigsegv = defaults->get("TRAP_SIGSEGV", trap_sigsegv); trap_sigintr = defaults->get("TRAP_SIGINTR", trap_sigintr); @@ -440,6 +449,9 @@ int Preferences::save_defaults(BC_Hash *defaults) defaults->update("INDEX_COUNT", index_count); defaults->update("USE_THUMBNAILS", use_thumbnails); defaults->update("KEYFRAME_RETICLE", keyframe_reticle); + defaults->update("PERPETUAL_SESSION", perpetual_session); + defaults->update("LV2_PATH", lv2_path); + defaults->update("AUTOSTART_LV2UI", autostart_lv2ui); defaults->update("TRAP_SIGSEGV", trap_sigsegv); defaults->update("TRAP_SIGINTR", trap_sigintr); defaults->update("THEME", theme);