Browse Source

Allow usage of CARLA_DISCOVERY_PATH env var for cached types

Signed-off-by: falkTX <falktx@falktx.com>
pull/1775/head
falkTX 1 year ago
parent
commit
b32f6dbad8
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

@@ -182,19 +182,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