DPF

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

commit 7b3b7bacf5b57afd294603642811e72452847f17
parent 6d983cbfe7ae99cda177831b8376f6f8d8a459fa
Author: falkTX <falktx@falktx.com>
Date:   Tue,  4 Jan 2022 14:43:51 +0000

Fix UI::getBundlePath() for VST2

Diffstat:
Mdistrho/src/DistrhoPluginVST2.cpp | 4++--
Mdistrho/src/DistrhoUIInternal.hpp | 1+
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/distrho/src/DistrhoPluginVST2.cpp b/distrho/src/DistrhoPluginVST2.cpp @@ -189,7 +189,7 @@ public: sendNoteCallback, setSizeCallback, nullptr, // TODO file request - nullptr, + d_nextBundlePath, plugin->getInstancePointer(), scaleFactor) # if !DISTRHO_PLUGIN_HAS_EXTERNAL_UI @@ -705,7 +705,7 @@ public: else { UIExporter tmpUI(nullptr, 0, fPlugin.getSampleRate(), - nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, d_nextBundlePath, fPlugin.getInstancePointer(), fLastScaleFactor); fVstRect.right = tmpUI.getWidth(); fVstRect.bottom = tmpUI.getHeight(); diff --git a/distrho/src/DistrhoUIInternal.hpp b/distrho/src/DistrhoUIInternal.hpp @@ -62,6 +62,7 @@ public: uiData(new UI::PrivateData()) { uiData->sampleRate = sampleRate; + uiData->bundlePath = bundlePath != nullptr ? strdup(bundlePath) : nullptr; uiData->dspPtr = dspPtr; uiData->bgColor = bgColor;