mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 07:06:23 +01:00
VST3: fix duplicate plugin list (windows bundle vs dll)
This commit is contained in:
parent
6dc91348d7
commit
5950df2b74
1 changed files with 12 additions and 0 deletions
|
|
@ -272,6 +272,18 @@ ARDOUR::module_path_vst3 (string const& path)
|
|||
string module_path;
|
||||
|
||||
if (!Glib::file_test (path, Glib::FILE_TEST_IS_DIR)) {
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
/* Until VST 3.6.10, the SDK allowed VST3 as a single dll file with the
|
||||
* vst3 extension. Since the folder is scanned recursively this leads to
|
||||
* an ambiguity (bundle and file):
|
||||
* ...\plugin.vst3
|
||||
* ...\plugin.vst3\Contents\x64_64-win\plugin.vst3
|
||||
*/
|
||||
if (Glib::path_get_basename (Glib::path_get_dirname (path)) == vst3_bindir ()) {
|
||||
/* ignore *.vst3 files if they're part of a bundle, use the bundle instead. */
|
||||
return "";
|
||||
}
|
||||
#endif
|
||||
module_path = path;
|
||||
} else {
|
||||
module_path = Glib::build_filename (path, "Contents",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue