change popupmenu behaviour, few minor fixups
[goodguy/history.git] / cinelerra-5.1 / cinelerra / presets.C
index 441f7777edaf8449d6ec2df571ee36fdb307ee42..9daecc457e29c8f5b16ebbf90cbb61c47e70bf02 100644 (file)
@@ -22,6 +22,7 @@
 #include "bcsignals.h"
 #include "bcwindowbase.inc"
 #include "cstrdup.h"
+#include "file.h"
 #include "filesystem.h"
 #include "filexml.h"
 #include "keyframe.h"
@@ -51,7 +52,7 @@ void PresetsDB::load()
        FileXML file;
        char path[BCTEXTLEN];
        char string[BCTEXTLEN];
-       sprintf(path, "%s%s", BCASTDIR, PRESETS_FILE);
+       sprintf(path, "%s/%s", File::get_config_path(), PRESETS_FILE);
        FileSystem fs;
        fs.complete_path(path);
        file.read_from_file(path);
@@ -102,7 +103,7 @@ void PresetsDB::save()
        file.terminate_string();
 
        char path[BCTEXTLEN];
-       sprintf(path, "%s%s", BCASTDIR, PRESETS_FILE);
+       sprintf(path, "%s/%s", File::get_config_path(), PRESETS_FILE);
        FileSystem fs;
        fs.complete_path(path);
        file.write_to_file(path);