1
0
Fork 0
forked from len0rd/rockbox

add playback control to more menu of plugins.

although it doesn't make much sense for some plugins like dice as the menu is only shown when you start that plugin.
change star plugin to go back to menu when exit game instead of closing plugin so that above change makes useful.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22171 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Teruaki Kawashima 2009-08-05 14:29:29 +00:00
parent eac0a5b840
commit e2e7ecf350
9 changed files with 106 additions and 57 deletions

View file

@ -24,6 +24,7 @@
#if defined(HAVE_LCD_BITMAP) && (CONFIG_RTC != 0)
#include <timefuncs.h>
#include "lib/playback_control.h"
PLUGIN_HEADER
@ -620,7 +621,8 @@ static bool edit_memo(int change, struct shown *shown)
MENUITEM_STRINGLIST(edit_menu, "Edit menu", edit_menu_cb,
"Remove", "Edit",
"New Weekly", "New Monthly",
"New Yearly", "New One off");
"New Yearly", "New One off",
"Playback Control");
while (!exit)
{
@ -652,6 +654,10 @@ static bool edit_memo(int change, struct shown *shown)
add_memo(shown,3);
return false;
case 6: /* playback control */
playback_control(NULL);
break;
case GO_TO_PREVIOUS:
return false;