X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fpreferences.C;h=cbdf27cd9353a5648987a45cf358cce1d4cc5770;hb=d4cfc2eaf603cd5abc76e98676a5ac8a53285c4e;hp=cee80362c68536ebcad141b2c0cf37e937efd907;hpb=7a70932d3e04454177c456d0b42ee2f5318d6ad1;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/preferences.C b/cinelerra-5.1/cinelerra/preferences.C index cee80362..cbdf27cd 100644 --- a/cinelerra-5.1/cinelerra/preferences.C +++ b/cinelerra-5.1/cinelerra/preferences.C @@ -27,7 +27,7 @@ #include "cache.inc" #include "clip.h" #include "bchash.h" -#include "file.inc" +#include "file.h" #include "filesystem.h" #include "guicast.h" #include "indexfile.h" @@ -54,11 +54,9 @@ Preferences::Preferences() preferences_lock = new Mutex("Preferences::preferences_lock"); - - get_exe_path(plugin_dir); - strcat(plugin_dir,"/plugins"); - - sprintf(index_directory, BCASTDIR); +// initial plugin path from build -DPLUGIN_DIR="..." + sprintf(plugin_dir, "%s/", File::get_plugin_path()); + sprintf(index_directory, "%s/", File::get_config_path()); if(strlen(index_directory)) fs.complete_path(index_directory); cache_size = 0x1000000; @@ -375,9 +373,9 @@ int Preferences::load_defaults(BC_Hash *defaults) shbtn_prefs.remove_all_objects(); int shbtns_total = defaults->get("SHBTNS_TOTAL", -1); if( shbtns_total < 0 ) { - shbtn_prefs.append(new ShBtnPref("Features5", "firefox file:///$CINELERRA_PATH/doc/Features5.pdf", 0)); + shbtn_prefs.append(new ShBtnPref("Features5", "firefox file://$CIN_DAT/doc/Features5.pdf", 0)); shbtn_prefs.append(new ShBtnPref("Online Help", "firefox https://cinelerra-cv.org/docs.php", 0)); - shbtn_prefs.append(new ShBtnPref("Orignal Manual", "firefox file:///$CINELERRA_PATH/doc/cinelerra.html", 0)); + shbtn_prefs.append(new ShBtnPref("Orignal Manual", "firefox file://$CIN_DAT/doc/cinelerra.html", 0)); shbtns_total = 0; } for( int i=0; ipath); int result = !access(path, R_OK) ? 0 : -1; - if( !result && asset->format == FILE_MPEG ) { + if( !result && ( asset->format == FILE_MPEG || + asset->format == FILE_VMPEG || asset->format == FILE_AMPEG ) ) { char source_filename[BCTEXTLEN], index_filename[BCTEXTLEN]; IndexFile::get_index_filename(source_filename, index_directory, index_filename, asset->path, ".toc");