onplay calls plugins to run other plugins

Change-Id: I7c1593c93debc0ac5c0f1b2e839ec0eb1bd375b7
This commit is contained in:
William Wilgus 2021-10-27 21:45:24 -04:00
parent f1ef5ab8a6
commit 8ee24d8cb4
2 changed files with 7 additions and 0 deletions

View File

@ -1576,6 +1576,8 @@ static bool onplay_load_plugin(void *param)
int ret = filetype_load_plugin((const char*)param, selected_file); int ret = filetype_load_plugin((const char*)param, selected_file);
if (ret == PLUGIN_USB_CONNECTED) if (ret == PLUGIN_USB_CONNECTED)
onplay_result = ONPLAY_RELOAD_DIR; onplay_result = ONPLAY_RELOAD_DIR;
else if (ret == PLUGIN_GOTO_PLUGIN)
onplay_result = ONPLAY_PLUGIN;
return false; return false;
} }

View File

@ -805,6 +805,7 @@ static int dirbrowse(void)
{ {
case ONPLAY_MAINMENU: case ONPLAY_MAINMENU:
return GO_TO_ROOT; return GO_TO_ROOT;
break;
case ONPLAY_OK: case ONPLAY_OK:
restore = true; restore = true;
@ -817,6 +818,10 @@ static int dirbrowse(void)
case ONPLAY_START_PLAY: case ONPLAY_START_PLAY:
return GO_TO_WPS; return GO_TO_WPS;
break; break;
case ONPLAY_PLUGIN:
return GO_TO_PLUGIN;
break;
} }
break; break;
} }