summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/rockdoom.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-05-08 11:55:43 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-05-08 11:55:43 +0000
commit77a458a464450c4e9d6977ac3f27b0e56217443c (patch)
tree526440820d32959de28747194effefb2ad6012d0 /apps/plugins/doom/rockdoom.c
parentb15ef987ca75a6940313ae22f638363d50d7919e (diff)
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
Diffstat (limited to 'apps/plugins/doom/rockdoom.c')
-rw-r--r--apps/plugins/doom/rockdoom.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/apps/plugins/doom/rockdoom.c b/apps/plugins/doom/rockdoom.c
index 1081324974..82daadb24e 100644
--- a/apps/plugins/doom/rockdoom.c
+++ b/apps/plugins/doom/rockdoom.c
@@ -37,6 +37,7 @@
#include "i_system.h"
#include "hu_stuff.h"
#include "st_stuff.h"
+#include "lib/oldmenuapi.h"
PLUGIN_HEADER
PLUGIN_IRAM_DECLARE
@@ -490,12 +491,12 @@ int Oset_keys()
{ "Game Automap", NULL },
};
- m = rb->menu_init(items, sizeof(items) / sizeof(*items),
+ m = menu_init(rb, items, sizeof(items) / sizeof(*items),
NULL, NULL, NULL, NULL);
while(!menuquit)
{
- result=rb->menu_show(m);
+ result=menu_show(m);
if(result<0)
menuquit=1;
else
@@ -506,7 +507,7 @@ int Oset_keys()
}
}
- rb->menu_exit(m);
+ menu_exit(m);
return (1);
}
@@ -554,12 +555,12 @@ static bool Doptions()
#endif
};
- m = rb->menu_init(items, sizeof(items) / sizeof(*items),
+ m = menu_init(rb, items, sizeof(items) / sizeof(*items),
NULL, NULL, NULL, NULL);
while(!menuquit)
{
- result=rb->menu_show(m);
+ result=menu_show(m);
if(result==0)
Oset_keys();
else if (result > 0)
@@ -568,7 +569,7 @@ static bool Doptions()
menuquit=1;
}
- rb->menu_exit(m);
+ menu_exit(m);
return (1);
}
@@ -577,10 +578,10 @@ int menuchoice(struct menu_item *menu, int items)
{
int m, result;
- m = rb->menu_init(menu, items,NULL, NULL, NULL, NULL);
+ m = menu_init(rb, menu, items,NULL, NULL, NULL, NULL);
- result= rb->menu_show(m);
- rb->menu_exit(m);
+ result= menu_show(m);
+ menu_exit(m);
if(result<items && result>=0)
return result;
return 0;
@@ -627,12 +628,12 @@ int doom_menu()
while (rb->button_get(false) != BUTTON_NONE)
rb->yield();
- m = rb->menu_init(items, sizeof(items) / sizeof(*items),
+ m = menu_init(rb, items, sizeof(items) / sizeof(*items),
NULL, NULL, NULL, NULL);
while(!menuquit)
{
- result=rb->menu_show(m);
+ result=menu_show(m);
switch (result) {
case 0: /* Game picker */
rb->set_option("Game WAD", &gamever, INT, names, status, NULL );
@@ -664,7 +665,7 @@ int doom_menu()
}
}
- rb->menu_exit(m);
+ menu_exit(m);
return (gamever);
}