Skip to content

Commit e98adfa

Browse files
falkTXfalkTX
authored andcommitted
Use files based on plugin libname to check properties, not a folder
1 parent d8be5a9 commit e98adfa

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

src/instantiate.cc

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -190,18 +190,12 @@ VstPlugin* instantiate_vst (audioMasterCallback audioMaster)
190190
*/
191191

192192

193-
#ifdef _WIN32
194-
# define COMPOSE_FN "%s\\%s"
195-
#else
196-
# define COMPOSE_FN "%s/%s"
197-
#endif
198-
199193
char fn[1024];
200-
snprintf (fn, 1023, COMPOSE_FN, get_lib_path (), ".bundle");
194+
snprintf (fn, 1023, "%s%s", get_lib_name (), ".bundle");
201195
fn[1023] = 0;
202196
bundles = load_file (fn);
203197

204-
snprintf (fn, 1023, COMPOSE_FN, get_lib_path (), ".whitelist");
198+
snprintf (fn, 1023, "%s%s", get_lib_name (), ".whitelist");
205199
fn[1023] = 0;
206200
whitelist = load_file (fn);
207201

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

0 commit comments

Comments
 (0)