Browse Source

Use system-wide carla binaries if not found inside plugin bundle

Signed-off-by: falkTX <falktx@falktx.com>
tags/v1.2
falkTX 2 years ago
parent
commit
997668af2a
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      plugins/Common/IldaeilPlugin.cpp

+ 11
- 1
plugins/Common/IldaeilPlugin.cpp View File

@@ -131,7 +131,15 @@ public:
fCarlaHostHandle = carla_create_native_plugin_host_handle(fCarlaPluginDescriptor, fCarlaPluginHandle);
DISTRHO_SAFE_ASSERT_RETURN(fCarlaHostHandle != nullptr,);
if (const char* const bundlePath = getBundlePath())
const char* const bundlePath = getBundlePath();
#ifdef CARLA_OS_WIN
#define EXT ".exe"
#else
#define EXT ""
#endif
if (bundlePath != nullptr
&& water::File(bundlePath + water::String(DISTRHO_OS_SEP_STR "carla-bridge-native" EXT)).existsAsFile())
{
carla_set_engine_option(fCarlaHostHandle, ENGINE_OPTION_PATH_BINARIES, 0, bundlePath);
// carla_set_engine_option(fCarlaHostHandle, ENGINE_OPTION_PATH_RESOURCES, 0, "");
@@ -147,6 +155,8 @@ public:
#endif
}
#undef EXT
if (const char* const path = std::getenv("LV2_PATH"))
carla_set_engine_option(fCarlaHostHandle, ENGINE_OPTION_PLUGIN_PATH, PLUGIN_LV2, path);


Loading…
Cancel
Save