From 0a024e77c0842c4e9f917d47516a1c047a96abd7 Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 26 Dec 2016 19:33:12 +0100 Subject: [PATCH] Force VST_PATH for dssi-vst, fixes loading of projects with it --- source/backend/engine/CarlaEngine.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/source/backend/engine/CarlaEngine.cpp b/source/backend/engine/CarlaEngine.cpp index 106726777..ddb1ad0f9 100644 --- a/source/backend/engine/CarlaEngine.cpp +++ b/source/backend/engine/CarlaEngine.cpp @@ -593,7 +593,16 @@ bool CarlaEngine::addPlugin(const BinaryType btype, const PluginType ptype, break; case PLUGIN_DSSI: - plugin = CarlaPlugin::newDSSI(initializer); + if (CarlaString(filename).contains("dssi-vst", true)) + { + const ScopedEngineEnvironmentLocker _seel(this); + const ScopedEnvVar _sev("VST_PATH", pData->options.pathVST2); + plugin = CarlaPlugin::newDSSI(initializer); + } + else + { + plugin = CarlaPlugin::newDSSI(initializer); + } break; case PLUGIN_LV2: