Browse Source

Make CarlaEngine::loadFile work for folders

Fixes drag&drop of vst bundles on MacOS
tags/1.9.8
falkTX 8 years ago
parent
commit
1665260844
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      source/backend/engine/CarlaEngine.cpp

+ 1
- 1
source/backend/engine/CarlaEngine.cpp View File

@@ -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());


Loading…
Cancel
Save