Browse Source

Fix VST3 bundle find on Windows

Signed-off-by: falkTX <falktx@falktx.com>
pull/375/head
parent
commit
f24e5317cd
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      distrho/src/DistrhoPluginVST3.cpp
  2. +1
    -1
      distrho/src/DistrhoUtils.cpp

+ 2
- 2
distrho/src/DistrhoPluginVST3.cpp View File

@@ -4216,9 +4216,9 @@ bool ENTRYFNNAME(void*)
String tmpPath(getBinaryFilename());
tmpPath.truncate(tmpPath.rfind(DISTRHO_OS_SEP));
tmpPath.truncate(tmpPath.rfind(DISTRHO_OS_SEP));
DISTRHO_SAFE_ASSERT_RETURN(tmpPath.endsWith("/Contents"), true);
DISTRHO_SAFE_ASSERT_RETURN(tmpPath.endsWith(DISTRHO_OS_SEP_STR "Contents"), true);

tmpPath.truncate(tmpPath.rfind('/'));
tmpPath.truncate(tmpPath.rfind(DISTRHO_OS_SEP));
bundlePath = tmpPath;
d_nextBundlePath = bundlePath.buffer();
}


+ 1
- 1
distrho/src/DistrhoUtils.cpp View File

@@ -59,7 +59,7 @@ const char* getBinaryFilename()
# endif
CHAR filenameBuf[MAX_PATH];
filenameBuf[0] = '\0';
GetModuleFileName(hInstance, filenameBuf, sizeof(filenameBuf));
GetModuleFileNameA(hInstance, filenameBuf, sizeof(filenameBuf));
filename = filenameBuf;
#elif !defined(STATIC_BUILD)
Dl_info info;


Loading…
Cancel
Save