Browse Source

Don't try to find binary type of certain plugins when loading project

tags/v1.9.12
falkTX 6 years ago
parent
commit
8c71b6f4d7
1 changed files with 16 additions and 1 deletions
  1. +16
    -1
      source/backend/engine/CarlaEngine.cpp

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

@@ -2233,7 +2233,22 @@ bool CarlaEngine::loadProjectInternal(water::XmlDocument& xmlDoc)
break;
}

if (addPlugin(getBinaryTypeFromFile(stateSave.binary), ptype, stateSave.binary,
BinaryType btype;

switch (ptype)
{
case PLUGIN_LADSPA:
case PLUGIN_DSSI:
case PLUGIN_LV2:
case PLUGIN_VST2:
btype = getBinaryTypeFromFile(stateSave.binary);
break;
default:
btype = BINARY_NATIVE;
break;
}

if (addPlugin(btype, ptype, stateSave.binary,
stateSave.name, stateSave.label, stateSave.uniqueId, extraStuff, stateSave.options))
{
#ifndef BUILD_BRIDGE_ALTERNATIVE_ARCH


Loading…
Cancel
Save