mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-26 23:36:37 -04:00
[Bugfix] OpenPlugin on multivolume targets
to check for against /.rockbox/viewers (VIEWERS_DIR) on multivolume you need to strip all the prefix junk of volume and potentially strip the redirect directory Change-Id: I8e24c43d84c3b90ffb4bbf62d4287620a5890ade
This commit is contained in:
parent
a5663ab3c0
commit
9310b51841
1 changed files with 7 additions and 1 deletions
|
|
@ -413,9 +413,15 @@ void open_plugin_browse(const char *key)
|
||||||
if (rockbox_browse(&browse) == GO_TO_PREVIOUS)
|
if (rockbox_browse(&browse) == GO_TO_PREVIOUS)
|
||||||
{
|
{
|
||||||
open_plugin_add_path(key, tmp_buf, NULL);
|
open_plugin_add_path(key, tmp_buf, NULL);
|
||||||
|
const char *path = tmp_buf;
|
||||||
|
#ifdef HAVE_MULTIVOLUME
|
||||||
|
path = strstr(path, ROCKBOX_DIR);
|
||||||
|
if (!path)
|
||||||
|
path = tmp_buf;
|
||||||
|
#endif
|
||||||
/* if this is a viewer ask the user if they want to set a parameter */
|
/* if this is a viewer ask the user if they want to set a parameter */
|
||||||
if (op_entry->lang_id > 0
|
if (op_entry->lang_id > 0
|
||||||
&& strncmp(tmp_buf, VIEWERS_DIR, sizeof(VIEWERS_DIR) -1) == 0)
|
&& strncmp(path, VIEWERS_DIR, sizeof(VIEWERS_DIR) -1) == 0)
|
||||||
{
|
{
|
||||||
if (yesno_pop(ID2P(LANG_PARAMETER)))
|
if (yesno_pop(ID2P(LANG_PARAMETER)))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue