mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-16 03:27:39 -04:00
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:
parent
b15ef987ca
commit
77a458a464
22 changed files with 438 additions and 349 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "plugin.h"
|
||||
#include "lib/configfile.h"
|
||||
#include "lib/oldmenuapi.h"
|
||||
|
||||
#include "mpeg_settings.h"
|
||||
|
||||
|
@ -41,13 +42,13 @@ bool mpeg_menu(void)
|
|||
{ "Quit mpegplayer", 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)
|
||||
{
|
||||
|
@ -71,7 +72,7 @@ bool mpeg_menu(void)
|
|||
}
|
||||
}
|
||||
|
||||
rb->menu_exit(m);
|
||||
menu_exit(m);
|
||||
|
||||
rb->lcd_clear_display();
|
||||
rb->lcd_update();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue