use .exe suffix for VST pluin scanner app on windows

This commit is contained in:
Robin Gareus
2014-10-01 00:12:45 +02:00
parent 50a7637d09
commit fdf83c620d

View File

@@ -116,7 +116,13 @@ PluginManager::PluginManager ()
string lrdf_path;
string scan_p = Glib::build_filename(ARDOUR::ardour_dll_directory(), "fst");
if (!PBD::find_file ( PBD::Searchpath(scan_p), "ardour-vst-scanner", scanner_bin_path)) {
if (!PBD::find_file (PBD::Searchpath(scan_p),
#ifdef PLATFORM_WINDOWS
"ardour-vst-scanner.exe"
#else
"ardour-vst-scanner"
#endif
, scanner_bin_path)) {
PBD::warning << "VST scanner app (ardour-vst-scanner) not found in path " << scan_p << endmsg;
}