Skip to content

Commit

Permalink
Use files based on plugin libname to check properties, not a folder
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Sep 7, 2019
1 parent d8be5a9 commit e98adfa
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/instantiate.cc
Expand Up @@ -190,18 +190,12 @@ VstPlugin* instantiate_vst (audioMasterCallback audioMaster)
*/


#ifdef _WIN32
# define COMPOSE_FN "%s\\%s"
#else
# define COMPOSE_FN "%s/%s"
#endif

char fn[1024];
snprintf (fn, 1023, COMPOSE_FN, get_lib_path (), ".bundle");
snprintf (fn, 1023, "%s%s", get_lib_name (), ".bundle");
fn[1023] = 0;
bundles = load_file (fn);

snprintf (fn, 1023, COMPOSE_FN, get_lib_path (), ".whitelist");
snprintf (fn, 1023, "%s%s", get_lib_name (), ".whitelist");
fn[1023] = 0;
whitelist = load_file (fn);

Expand All @@ -225,7 +219,7 @@ VstPlugin* instantiate_vst (audioMasterCallback audioMaster)
if (id == 0) {
/* plugin shell -- list all available */
#ifndef BUNDLES
snprintf (fn, 1023, COMPOSE_FN, get_lib_path (), ".blacklist");
snprintf (fn, 1023, "%s%s", get_lib_name (), ".blacklist");
fn[1023] = 0;
blacklist = load_file (fn);
#endif
Expand Down

0 comments on commit e98adfa

Please sign in to comment.