diff options
Diffstat (limited to 'apps/plugins/pacbox/pacbox.c')
-rw-r--r-- | apps/plugins/pacbox/pacbox.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/plugins/pacbox/pacbox.c b/apps/plugins/pacbox/pacbox.c index 3a56430106..712c3aff77 100644 --- a/apps/plugins/pacbox/pacbox.c +++ b/apps/plugins/pacbox/pacbox.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include "pacbox.h" | 27 | #include "pacbox.h" |
28 | #include "pacbox_lcd.h" | 28 | #include "pacbox_lcd.h" |
29 | #include "lib/configfile.h" | 29 | #include "lib/configfile.h" |
30 | #include "lib/oldmenuapi.h" | ||
30 | 31 | ||
31 | PLUGIN_HEADER | 32 | PLUGIN_HEADER |
32 | PLUGIN_IRAM_DECLARE | 33 | PLUGIN_IRAM_DECLARE |
@@ -178,13 +179,13 @@ static bool pacbox_menu(void) | |||
178 | { "Quit", NULL }, | 179 | { "Quit", NULL }, |
179 | }; | 180 | }; |
180 | 181 | ||
181 | m = rb->menu_init(items, sizeof(items) / sizeof(*items), | 182 | m = menu_init(rb, items, sizeof(items) / sizeof(*items), |
182 | NULL, NULL, NULL, NULL); | 183 | NULL, NULL, NULL, NULL); |
183 | 184 | ||
184 | rb->button_clear_queue(); | 185 | rb->button_clear_queue(); |
185 | 186 | ||
186 | while (!menu_quit) { | 187 | while (!menu_quit) { |
187 | result=rb->menu_show(m); | 188 | result=menu_show(m); |
188 | 189 | ||
189 | switch(result) | 190 | switch(result) |
190 | { | 191 | { |
@@ -238,7 +239,7 @@ static bool pacbox_menu(void) | |||
238 | } | 239 | } |
239 | } | 240 | } |
240 | 241 | ||
241 | rb->menu_exit(m); | 242 | menu_exit(m); |
242 | 243 | ||
243 | if (need_restart) { | 244 | if (need_restart) { |
244 | init_PacmanMachine(settings_to_dip(settings)); | 245 | init_PacmanMachine(settings_to_dip(settings)); |