Browse Source

Allow usage of CARLA_DISCOVERY_PATH env var for cached types

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.5.5
falkTX 1 year ago
parent
commit
ab1e28b690
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 14 additions and 11 deletions
  1. +14
    -11
      source/discovery/carla-discovery.cpp

+ 14
- 11
source/discovery/carla-discovery.cpp View File

@@ -180,19 +180,22 @@ static void print_cached_plugin(const CarlaCachedPluginInfo* const pinfo)

static void do_cached_check(const PluginType type)
{
const char* plugPath;
const char* plugPath = std::getenv("CARLA_DISCOVERY_PATH");

switch (type)
if (plugPath == nullptr)
{
case PLUGIN_LV2:
plugPath = std::getenv("LV2_PATH");
break;
case PLUGIN_SFZ:
plugPath = std::getenv("SFZ_PATH");
break;
default:
plugPath = nullptr;
break;
switch (type)
{
case PLUGIN_LV2:
plugPath = std::getenv("LV2_PATH");
break;
case PLUGIN_SFZ:
plugPath = std::getenv("SFZ_PATH");
break;
default:
plugPath = nullptr;
break;
}
}

# ifdef USING_JUCE


Loading…
Cancel
Save