X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Ftitler%2Ftitle.C.stroker;fp=cinelerra-5.1%2Fplugins%2Ftitler%2Ftitle.C.stroker;h=00bbd812d0319005f158f5a94db70243aa77ec18;hb=089f2be86316b88f72a6c359ab10e2b95539005b;hp=41ad7f1ae4009b8f27b9f79a63c81fef38c1208c;hpb=7a70932d3e04454177c456d0b42ee2f5318d6ad1;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/plugins/titler/title.C.stroker b/cinelerra-5.1/plugins/titler/title.C.stroker index 41ad7f1a..00bbd812 100644 --- a/cinelerra-5.1/plugins/titler/title.C.stroker +++ b/cinelerra-5.1/plugins/titler/title.C.stroker @@ -5,6 +5,7 @@ #include "clip.h" #include "bccmodels.h" +#include "file.h" #include "filexml.h" #include "filesystem.h" #include "freetype/ftbbox.h" @@ -2067,7 +2068,7 @@ int TitleMain::load_defaults() { char directory[1024], text_path[1024]; // set the default directory - sprintf(directory, "%stitle.rc", BCASTDIR); + sprintf(directory, "%s/title.rc", File::get_config_path()); // load the defaults defaults = new Defaults(directory); @@ -2096,7 +2097,7 @@ int TitleMain::load_defaults() // Store text in separate path to isolate special characters FileSystem fs; - sprintf(text_path, "%stitle_text.rc", BCASTDIR); + sprintf(text_path, "%s/title_text.rc", File::get_config_path()); fs.complete_path(text_path); FILE *fd = fopen(text_path, "rb"); if(fd) @@ -2142,7 +2143,7 @@ int TitleMain::save_defaults() // Store text in separate path to isolate special characters FileSystem fs; - sprintf(text_path, "%stitle_text.rc", BCASTDIR); + sprintf(text_path, "%s/title_text.rc", File::get_config_path()); fs.complete_path(text_path); FILE *fd = fopen(text_path, "wb"); if(fd)