map media vicon popup
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / mainsession.C
index 86e5b36d3f92c4c579bbbb973347191f85a6dc2d..d8e563d6b3a9411c7d3ceb2c32a9b0ecfbf40275 100644 (file)
@@ -603,3 +603,31 @@ void MainSession::update_clip_number()
        clip_number = clip_no+1;
 }
 
+int MainSession::load_file(const char *path)
+{
+       int ret = 1;
+       FILE *fp = fopen(path,"r");
+       if( fp ) {
+               BC_Hash defaults;
+               defaults.load_file(fp);
+               load_defaults(&defaults);
+               fclose(fp);
+               ret = 0;
+       }
+       return ret;
+}
+
+int MainSession::save_file(const char *path)
+{
+       int ret = 1;
+       FILE *fp = fopen(path,"w");
+       if( fp ) {
+               BC_Hash defaults;
+               save_defaults(&defaults);
+               defaults.save_file(fp);
+               fclose(fp);
+               ret = 0;
+       }
+       return ret;
+}
+