From d9e856141a3f34618b03080a9541cc70e8c7210e Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 10 Dec 2021 19:08:56 +0000 Subject: [PATCH] Allow to move VST2 folder around Signed-off-by: falkTX --- distrho/src/DistrhoUtils.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/distrho/src/DistrhoUtils.cpp b/distrho/src/DistrhoUtils.cpp index 7086ae0a..eb39fdc5 100644 --- a/distrho/src/DistrhoUtils.cpp +++ b/distrho/src/DistrhoUtils.cpp @@ -99,7 +99,7 @@ const char* getResourcePath(const char* const bundlePath) noexcept if (bundlePathLV2.isEmpty()) { - bundlePathLV2 += bundlePath; + bundlePathLV2 = bundlePath; bundlePathLV2 += DISTRHO_OS_SEP_STR "resources"; } @@ -109,11 +109,10 @@ const char* getResourcePath(const char* const bundlePath) noexcept if (bundlePathVST2.isEmpty()) { - bundlePathVST2 += bundlePath; + bundlePathVST2 = bundlePath; # ifdef DISTRHO_OS_MAC bundlePathVST2 += "/Contents/Resources"; # else - DISTRHO_SAFE_ASSERT_RETURN(bundlePathVST2.endsWith(".vst"), nullptr); bundlePathVST2 += DISTRHO_OS_SEP_STR "resources"; # endif } @@ -124,7 +123,7 @@ const char* getResourcePath(const char* const bundlePath) noexcept if (bundlePathVST3.isEmpty()) { - bundlePathVST3 += bundlePath; + bundlePathVST3 = bundlePath; bundlePathVST3 += "/Contents/Resources"; }