DPF

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

commit 437d080a68e032dbe7b192bfa1f9f6a1adc693c9
parent 01261953a36c3eedca5fefb374ed2e98c58ca85d
Author: falkTX <falktx@falktx.com>
Date:   Thu, 21 Oct 2021 16:23:54 +0100

Setup bundle path for LV2 ttl export

Signed-off-by: falkTX <falktx@falktx.com>

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

diff --git a/distrho/src/DistrhoPluginLV2export.cpp b/distrho/src/DistrhoPluginLV2export.cpp @@ -15,6 +15,7 @@ */ #include "DistrhoPluginInternal.hpp" +#include "../DistrhoPluginUtils.hpp" #include "lv2/atom.h" #include "lv2/buf-size.h" @@ -223,6 +224,10 @@ void lv2_generate_ttl(const char* const basename) { USE_NAMESPACE_DISTRHO + String bundlePath(getBinaryFilename()); + bundlePath.truncate(bundlePath.rfind(DISTRHO_OS_SEP)); + d_nextBundlePath = bundlePath.buffer(); + // Dummy plugin to get data from d_nextBufferSize = 512; d_nextSampleRate = 44100.0;