diff options
Diffstat (limited to 'apps/open_plugin.c')
-rw-r--r-- | apps/open_plugin.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/apps/open_plugin.c b/apps/open_plugin.c index 49d727b4c9..c36a72f30e 100644 --- a/apps/open_plugin.c +++ b/apps/open_plugin.c | |||
@@ -352,7 +352,7 @@ retnhash: | |||
352 | void open_plugin_browse(const char *key) | 352 | void open_plugin_browse(const char *key) |
353 | { | 353 | { |
354 | logf("%s", __func__); | 354 | logf("%s", __func__); |
355 | struct browse_context browse; | 355 | |
356 | char tmp_buf[OPEN_PLUGIN_BUFSZ+1]; | 356 | char tmp_buf[OPEN_PLUGIN_BUFSZ+1]; |
357 | open_plugin_load_entry(key); | 357 | open_plugin_load_entry(key); |
358 | struct open_plugin_entry_t *op_entry = open_plugin_get_entry(); | 358 | struct open_plugin_entry_t *op_entry = open_plugin_get_entry(); |
@@ -364,11 +364,15 @@ void open_plugin_browse(const char *key) | |||
364 | if (op_entry->path[0] == '\0') | 364 | if (op_entry->path[0] == '\0') |
365 | strcpy(op_entry->path, PLUGIN_DIR"/"); | 365 | strcpy(op_entry->path, PLUGIN_DIR"/"); |
366 | 366 | ||
367 | browse_context_init(&browse, SHOW_ALL, BROWSE_SELECTONLY, "", | 367 | struct browse_context browse = { |
368 | Icon_Plugin, op_entry->path, NULL); | 368 | .dirfilter = SHOW_ALL, |
369 | 369 | .flags = BROWSE_SELECTONLY, | |
370 | browse.buf = tmp_buf; | 370 | .title = str(LANG_OPEN_PLUGIN), |
371 | browse.bufsize = OPEN_PLUGIN_BUFSZ; | 371 | .icon = Icon_Plugin, |
372 | .root = op_entry->path, | ||
373 | .buf = tmp_buf, | ||
374 | .bufsize = sizeof(tmp_buf), | ||
375 | }; | ||
372 | 376 | ||
373 | if (rockbox_browse(&browse) == GO_TO_PREVIOUS) | 377 | if (rockbox_browse(&browse) == GO_TO_PREVIOUS) |
374 | open_plugin_add_path(key, tmp_buf, NULL); | 378 | open_plugin_add_path(key, tmp_buf, NULL); |