summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2021-10-27 21:45:24 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2021-10-27 22:44:35 -0400
commit8ee24d8cb47939ff04fa42b1ae9719ebeba64d29 (patch)
treeb7958b6fa64be6570f144c0232ecd4452220c8fe
parentf1ef5ab8a6f7f048c05ef7c25de594fca097e975 (diff)
downloadrockbox-8ee24d8cb47939ff04fa42b1ae9719ebeba64d29.tar.gz
rockbox-8ee24d8cb47939ff04fa42b1ae9719ebeba64d29.tar.bz2
rockbox-8ee24d8cb47939ff04fa42b1ae9719ebeba64d29.zip
onplay calls plugins to run other plugins
Change-Id: I7c1593c93debc0ac5c0f1b2e839ec0eb1bd375b7
-rw-r--r--apps/onplay.c2
-rw-r--r--apps/tree.c5
2 files changed, 7 insertions, 0 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index a5a92e7c1c..83b24da78d 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -1576,6 +1576,8 @@ static bool onplay_load_plugin(void *param)
int ret = filetype_load_plugin((const char*)param, selected_file);
if (ret == PLUGIN_USB_CONNECTED)
onplay_result = ONPLAY_RELOAD_DIR;
+ else if (ret == PLUGIN_GOTO_PLUGIN)
+ onplay_result = ONPLAY_PLUGIN;
return false;
}
diff --git a/apps/tree.c b/apps/tree.c
index f50d424a82..7fcced92c8 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -805,6 +805,7 @@ static int dirbrowse(void)
{
case ONPLAY_MAINMENU:
return GO_TO_ROOT;
+ break;
case ONPLAY_OK:
restore = true;
@@ -817,6 +818,10 @@ static int dirbrowse(void)
case ONPLAY_START_PLAY:
return GO_TO_WPS;
break;
+
+ case ONPLAY_PLUGIN:
+ return GO_TO_PLUGIN;
+ break;
}
break;
}