Navigation Menu

Skip to content

Commit

Permalink
Use absolute bundle paths
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Sep 7, 2019
1 parent e98adfa commit dd8bd57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
13 changes: 2 additions & 11 deletions src/lv2ttl.cc
Expand Up @@ -201,19 +201,10 @@ LV2Parser::LV2Parser (RtkLv2Description* d, char const* const* bundles)
unsigned int bndl_it = 0;
if (bundles) {
while (bundles[bndl_it]) {

char b_path[1024];
#ifdef PLATFORM_WINDOWS
snprintf (b_path, 1023, "%s\\%s\\", get_lib_path (), bundles[bndl_it]);
#else
snprintf (b_path, 1023, "%s/%s/", get_lib_path (), bundles[bndl_it]);
#endif
b_path[1023] = 0;
++bndl_it;

LilvNode *node = lilv_new_file_uri (world, NULL, b_path);
LilvNode *node = lilv_new_file_uri (world, NULL, bundles[bndl_it]);
lilv_world_load_bundle (world, node);
lilv_node_free(node);
++bndl_it;
}
}

Expand Down
13 changes: 2 additions & 11 deletions src/shell.h
Expand Up @@ -43,19 +43,10 @@ class LV2ShellPlugin : public VstPlugin
unsigned int bndl_it = 0;
if (bundles) {
while (bundles[bndl_it]) {

char b_path[1024];
#ifdef PLATFORM_WINDOWS
snprintf (b_path, 1023, "%s\\%s\\", get_lib_path (), bundles[bndl_it]);
#else
snprintf (b_path, 1023, "%s/%s/", get_lib_path (), bundles[bndl_it]);
#endif
b_path[1023] = 0;
++bndl_it;

LilvNode *node = lilv_new_file_uri (world, NULL, b_path);
LilvNode *node = lilv_new_file_uri (world, NULL, bundles[bndl_it]);
lilv_world_load_bundle (world, node);
lilv_node_free(node);
++bndl_it;
}
}

Expand Down

0 comments on commit dd8bd57

Please sign in to comment.