mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 04:06:26 +01:00
update VST scanner lookup (prepare for moving to BINDIR)
This commit is contained in:
parent
3f7986198b
commit
29d89f0128
1 changed files with 10 additions and 3 deletions
|
|
@ -115,16 +115,23 @@ PluginManager::PluginManager ()
|
||||||
char* s;
|
char* s;
|
||||||
string lrdf_path;
|
string lrdf_path;
|
||||||
|
|
||||||
string scan_p = Glib::build_filename(ARDOUR::ardour_dll_directory(), "fst");
|
#if defined WINDOWS_VST_SUPPORT || defined LXVST_SUPPORT
|
||||||
if (!PBD::find_file (PBD::Searchpath(scan_p),
|
PBD::Searchpath vstsp(Glib::build_filename(ARDOUR::ardour_dll_directory(), "fst"));
|
||||||
|
#ifdef PLATFORM_WINDOWS
|
||||||
|
vstsp += Glib::build_filename(g_win32_get_package_installation_directory_of_module (0), "bin");
|
||||||
|
#else
|
||||||
|
vstsp += Glib::getenv("PATH");
|
||||||
|
#endif
|
||||||
|
if (!PBD::find_file (vstsp,
|
||||||
#ifdef PLATFORM_WINDOWS
|
#ifdef PLATFORM_WINDOWS
|
||||||
"ardour-vst-scanner.exe"
|
"ardour-vst-scanner.exe"
|
||||||
#else
|
#else
|
||||||
"ardour-vst-scanner"
|
"ardour-vst-scanner"
|
||||||
#endif
|
#endif
|
||||||
, scanner_bin_path)) {
|
, scanner_bin_path)) {
|
||||||
PBD::warning << "VST scanner app (ardour-vst-scanner) not found in path " << scan_p << endmsg;
|
PBD::warning << "VST scanner app (ardour-vst-scanner) not found in path " << vstsp.to_string() << endmsg;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
load_statuses ();
|
load_statuses ();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue