13
0

VST3: relax bundle-name requirement on MacOS

This commit is contained in:
Robin Gareus 2020-10-07 18:50:09 +02:00
parent 953901ad3b
commit fa3ae33a1f
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -245,6 +245,17 @@ ARDOUR::module_path_vst3 (string const& path)
vst3_bindir (), PBD::basename_nosuffix (path) + vst3_suffix ()); vst3_bindir (), PBD::basename_nosuffix (path) + vst3_suffix ());
} }
if (!Glib::file_test (module_path, Glib::FILE_TEST_IS_REGULAR)) { if (!Glib::file_test (module_path, Glib::FILE_TEST_IS_REGULAR)) {
#ifdef __APPLE__
if (Glib::file_test (Glib::path_get_dirname (module_path), Glib::FILE_TEST_IS_DIR) &&
Glib::file_test (Glib::build_filename (path, "Contents", "Info.plist"), Glib::FILE_TEST_IS_REGULAR)) {
/* Alternatively check for "Contents/MacOS" and an Info.plist file.
* VST3MacModule calls CFBundleCreate() which handles Info.plist files.
* (this is for plugins that use PACE, the MacOS folder usually
* contains a file <basename> + "Protect").
*/
return module_path;
}
#endif
cerr << "VST3 not a valid bundle: '" << module_path << "'\n"; cerr << "VST3 not a valid bundle: '" << module_path << "'\n";
return ""; return "";
} }