DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 7cd27b17fbbd196beff8c1fcc209f10e9c24f274
parent 697293675f5f085e71edd37e997229fc6c7e0ddb
Author: falkTX <falktx@falktx.com>
Date:   Sat, 12 Mar 2022 14:41:52 +0000

Set plugin dummy flag if RUNNING_UNDER_LV2LINT env var is set

Diffstat:
Mdistrho/src/DistrhoPluginLV2.cpp | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/distrho/src/DistrhoPluginLV2.cpp b/distrho/src/DistrhoPluginLV2.cpp @@ -1486,6 +1486,9 @@ static LV2_Handle lv2_instantiate(const LV2_Descriptor*, double sampleRate, cons d_nextBundlePath = bundlePath; d_nextCanRequestParameterValueChanges = ctrlInPortChangeReq != nullptr; + if (std::getenv("RUNNING_UNDER_LV2LINT") != nullptr) + d_nextPluginIsDummy = true; + return new PluginLv2(sampleRate, uridMap, worker, ctrlInPortChangeReq, usingNominal); }