diff --git a/source/backend/plugin/CarlaPluginVST2.cpp b/source/backend/plugin/CarlaPluginVST2.cpp index 5df1f42a8..3054b410d 100644 --- a/source/backend/plugin/CarlaPluginVST2.cpp +++ b/source/backend/plugin/CarlaPluginVST2.cpp @@ -2099,7 +2099,10 @@ public: VST_Function vstFn; #ifdef CARLA_OS_MAC - if (CarlaString(filename).toLower().endsWith(".vst")) + CarlaString filenameCheck(filename); + filenameCheck.toLower(); + + if (filenameCheck.endsWith(".vst") || filenameCheck.endsWith(".vst/")) { // FIXME assert returns, set engine error const CFURLRef urlRef = CFURLCreateFromFileSystemRepresentation(0, (const UInt8*)filename, (CFIndex)strlen(filename), true); diff --git a/source/discovery/carla-discovery.cpp b/source/discovery/carla-discovery.cpp index cee77b7e1..c801b0369 100644 --- a/source/discovery/carla-discovery.cpp +++ b/source/discovery/carla-discovery.cpp @@ -1650,7 +1650,7 @@ int main(int argc, char* argv[]) return 0; } #ifdef CARLA_OS_MAC - if (type == PLUGIN_VST2 && filenameCheck.endsWith(".vst")) + if (type == PLUGIN_VST2 && (filenameCheck.endsWith(".vst") || filenameCheck.endsWith(".vst/"))) openLib = false; #endif }