1
0
Fork 0
forked from len0rd/rockbox

Move the old api out of the core and into the plugin lib.

ew plugins shuold use the new api and not this one.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13358 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-05-08 11:55:43 +00:00
parent b15ef987ca
commit 77a458a464
22 changed files with 438 additions and 349 deletions

View file

@ -27,6 +27,7 @@
#include "pacbox.h"
#include "pacbox_lcd.h"
#include "lib/configfile.h"
#include "lib/oldmenuapi.h"
PLUGIN_HEADER
PLUGIN_IRAM_DECLARE
@ -178,13 +179,13 @@ static bool pacbox_menu(void)
{ "Quit", NULL },
};
m = rb->menu_init(items, sizeof(items) / sizeof(*items),
m = menu_init(rb, items, sizeof(items) / sizeof(*items),
NULL, NULL, NULL, NULL);
rb->button_clear_queue();
while (!menu_quit) {
result=rb->menu_show(m);
result=menu_show(m);
switch(result)
{
@ -238,7 +239,7 @@ static bool pacbox_menu(void)
}
}
rb->menu_exit(m);
menu_exit(m);
if (need_restart) {
init_PacmanMachine(settings_to_dip(settings));