Browse Source

Allow to move VST2 folder around

Signed-off-by: falkTX <falktx@falktx.com>
pull/351/head
falkTX 3 years ago
parent
commit
d9e856141a
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      distrho/src/DistrhoUtils.cpp

+ 3
- 4
distrho/src/DistrhoUtils.cpp View File

@@ -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";
}



Loading…
Cancel
Save