MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / getPluginPath

Function getPluginPath

plugins/Cardinal/src/Ildaeil.cpp:334–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334static const char* getPluginPath(const PluginType ptype)
335{
336 switch (ptype)
337 {
338 case PLUGIN_LADSPA:
339 if (const char* const path = std::getenv("LADSPA_PATH"))
340 return path;
341 return getPathForLADSPA();
342 case PLUGIN_DSSI:
343 if (const char* const path = std::getenv("DSSI_PATH"))
344 return path;
345 return getPathForDSSI();
346 case PLUGIN_LV2:
347 if (const char* const path = std::getenv("LV2_PATH"))
348 return path;
349 return getPathForLV2();
350 case PLUGIN_VST2:
351 if (const char* const path = std::getenv("VST_PATH"))
352 return path;
353 return getPathForVST2();
354 case PLUGIN_VST3:
355 if (const char* const path = std::getenv("VST3_PATH"))
356 return path;
357 return getPathForVST3();
358 case PLUGIN_CLAP:
359 if (const char* const path = std::getenv("CLAP_PATH"))
360 return path;
361 return getPathForCLAP();
362 case PLUGIN_JSFX:
363 return getPathForJSFX();
364 default:
365 return nullptr;
366 }
367}
368
369// --------------------------------------------------------------------------------------------------------------------
370

Callers 3

Ildaeil.cppFile · 0.85
runMethod · 0.85
startNextDiscoveryMethod · 0.85

Calls 7

getPathForLADSPAFunction · 0.85
getPathForDSSIFunction · 0.85
getPathForLV2Function · 0.85
getPathForVST2Function · 0.85
getPathForVST3Function · 0.85
getPathForCLAPFunction · 0.85
getPathForJSFXFunction · 0.85

Tested by

no test coverage detected