Browse Source

Do not check filepath of added plugins under windows

Signed-off-by: falkTX <falktx@gmail.com>
tags/v2.1-alpha1-winvst
falkTX 5 years ago
parent
commit
a47c7d6e19
Signed by: falkTX <falktx@gmail.com> GPG Key ID: 2D3445A829213837
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      source/backend/engine/CarlaEngine.cpp

+ 2
- 0
source/backend/engine/CarlaEngine.cpp View File

@@ -312,9 +312,11 @@ bool CarlaEngine::addPlugin(const BinaryType btype, const PluginType ptype,
CARLA_SAFE_ASSERT_RETURN_ERR((filename != nullptr && filename[0] != '\0') || (label != nullptr && label[0] != '\0'), "Invalid plugin filename and label");
carla_debug("CarlaEngine::addPlugin(%i:%s, %i:%s, \"%s\", \"%s\", \"%s\", " P_INT64 ", %p, %u)", btype, BinaryType2Str(btype), ptype, PluginType2Str(ptype), filename, name, label, uniqueId, extra, options);

#ifndef CARLA_OS_WIN
if (filename != nullptr && filename[0] != '\0') {
CARLA_SAFE_ASSERT_RETURN_ERR(filename[0] == CARLA_OS_SEP || filename[0] == '.' || filename[0] == '~', "Invalid plugin filename");
}
#endif

uint id;



Loading…
Cancel
Save