summaryrefslogtreecommitdiff
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.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)
1576 int ret = filetype_load_plugin((const char*)param, selected_file); 1576 int ret = filetype_load_plugin((const char*)param, selected_file);
1577 if (ret == PLUGIN_USB_CONNECTED) 1577 if (ret == PLUGIN_USB_CONNECTED)
1578 onplay_result = ONPLAY_RELOAD_DIR; 1578 onplay_result = ONPLAY_RELOAD_DIR;
1579 else if (ret == PLUGIN_GOTO_PLUGIN)
1580 onplay_result = ONPLAY_PLUGIN;
1579 return false; 1581 return false;
1580} 1582}
1581 1583
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)
805 { 805 {
806 case ONPLAY_MAINMENU: 806 case ONPLAY_MAINMENU:
807 return GO_TO_ROOT; 807 return GO_TO_ROOT;
808 break;
808 809
809 case ONPLAY_OK: 810 case ONPLAY_OK:
810 restore = true; 811 restore = true;
@@ -817,6 +818,10 @@ static int dirbrowse(void)
817 case ONPLAY_START_PLAY: 818 case ONPLAY_START_PLAY:
818 return GO_TO_WPS; 819 return GO_TO_WPS;
819 break; 820 break;
821
822 case ONPLAY_PLUGIN:
823 return GO_TO_PLUGIN;
824 break;
820 } 825 }
821 break; 826 break;
822 } 827 }