From 1665260844de425d226ce2a54c06ed951816ad83 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 2 Dec 2017 23:30:13 +0100 Subject: [PATCH] Make CarlaEngine::loadFile work for folders Fixes drag&drop of vst bundles on MacOS --- source/backend/engine/CarlaEngine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/backend/engine/CarlaEngine.cpp b/source/backend/engine/CarlaEngine.cpp index f93cf46d6..46fa88b5d 100644 --- a/source/backend/engine/CarlaEngine.cpp +++ b/source/backend/engine/CarlaEngine.cpp @@ -1025,7 +1025,7 @@ bool CarlaEngine::loadFile(const char* const filename) const String jfilename = String(CharPointer_UTF8(filename)); File file(jfilename); - CARLA_SAFE_ASSERT_RETURN_ERR(file.existsAsFile(), "Requested file does not exist or is not a readable file"); + CARLA_SAFE_ASSERT_RETURN_ERR(file.exists(), "Requested file does not exist or is not a readable"); CarlaString baseName(file.getFileNameWithoutExtension().toRawUTF8()); CarlaString extension(file.getFileExtension().replace(".","").toLowerCase().toRawUTF8());