Ildaeil: Respect LV2_PATH for finding plugins
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
fac660141b
commit
6912f2a62b
1 changed files with 16 additions and 5 deletions
|
|
@ -162,6 +162,9 @@ struct IldaeilModule : Module {
|
||||||
carla_set_engine_option(fCarlaHostHandle, ENGINE_OPTION_PATH_RESOURCES, 0, "/usr/share/carla/resources");
|
carla_set_engine_option(fCarlaHostHandle, ENGINE_OPTION_PATH_RESOURCES, 0, "/usr/share/carla/resources");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (const char* const path = std::getenv("LV2_PATH"))
|
||||||
|
carla_set_engine_option(fCarlaHostHandle, ENGINE_OPTION_PLUGIN_PATH, PLUGIN_LV2, path);
|
||||||
|
|
||||||
fCarlaPluginDescriptor->dispatcher(fCarlaPluginHandle, NATIVE_PLUGIN_OPCODE_HOST_USES_EMBED,
|
fCarlaPluginDescriptor->dispatcher(fCarlaPluginHandle, NATIVE_PLUGIN_OPCODE_HOST_USES_EMBED,
|
||||||
0, 0, nullptr, 0.0f);
|
0, 0, nullptr, 0.0f);
|
||||||
|
|
||||||
|
|
@ -711,12 +714,20 @@ struct IldaeilWidget : ImGuiWidget, Thread {
|
||||||
|
|
||||||
void run() override
|
void run() override
|
||||||
{
|
{
|
||||||
/*
|
const char* path;
|
||||||
// TESTING
|
|
||||||
const char* const path = "/home/falktx/bin/reaper_linux_x86_64/REAPER/InstallData/Effects";
|
|
||||||
|
|
||||||
carla_set_engine_option(fPlugin->fCarlaHostHandle, ENGINE_OPTION_PLUGIN_PATH, fPluginType, path);
|
switch (fPluginType)
|
||||||
*/
|
{
|
||||||
|
case PLUGIN_LV2:
|
||||||
|
path = std::getenv("LV2_PATH");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
path = nullptr;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (path != nullptr)
|
||||||
|
carla_set_engine_option(module->fCarlaHostHandle, ENGINE_OPTION_PLUGIN_PATH, fPluginType, path);
|
||||||
|
|
||||||
if (const uint count = carla_get_cached_plugin_count(fPluginType, nullptr))
|
if (const uint count = carla_get_cached_plugin_count(fPluginType, nullptr))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue