Browse Source

Linux: bypass VST plugin dir detection and use hard-coded path instead (just for testing!)

pull/1639/head
bsp2 6 years ago
parent
commit
93a77c1520
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      src/vst2_main.cpp

+ 8
- 0
src/vst2_main.cpp View File

@@ -533,7 +533,14 @@ public:
GetModuleFileNameA((HINSTANCE)&__ImageBase, dllnameraw, 1024);
#elif defined(HAVE_UNIX)
getcwd(oldCWD, 1024);
#if 0
// this does not work, it reports the path of the host, not the plugin
// (+the string is not NULL-terminated from the looks of it)
readlink("/proc/self/exe", dllnameraw, 1024);
#else
// (TODO) just a test
sprintf(dllnameraw, "/mnt/git/VeeSeeVSTRack/vst2_bin/");
#endif
#endif

dllname.visit(dllnameraw);
@@ -553,6 +560,7 @@ public:
char *argv[1];
//argv[0] = (char*)cwd.chars;
argv[0] = (char*)dllnameraw;
Dprintf("xxx argv[0]=%p\n", argv[0]);
Dprintf("xxx vstrack_plugin::openEffect: dllname=\"%s\"\n", argv[0]);
(void)vst2_init(argc, argv,
#ifdef VST2_EFFECT


Loading…
Cancel
Save