From b285076925fed906d95573b64115cb3f6bdafe65 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 23 Aug 2002 12:32:52 +0000 Subject: Remade the menu system slightly. All functions invoked from menus now use the Menu typedef as return type, and *ALL* menus that intercept USB connect can then return MENU_REFRESH_DIR so that the parent (any parent really) that do file or dir-accesses knows that and can do the refresh. If no refresh is needed by the parent, MENU_OK is returned. Somewhat biggish commit this close to 1.3, but we need to sort out this refresh-after-usb-connected business. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1948 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/sokoban.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/recorder/sokoban.c') diff --git a/apps/recorder/sokoban.c b/apps/recorder/sokoban.c index 2795d745e6..6ce19e6a41 100644 --- a/apps/recorder/sokoban.c +++ b/apps/recorder/sokoban.c @@ -23,6 +23,7 @@ #include "lcd.h" #include "button.h" #include "kernel.h" +#include "menu.h" #ifdef SIMULATOR #include @@ -1334,7 +1335,7 @@ void sokoban_loop(void) { } -void sokoban(void) +Menu sokoban(void) { int w, h; int len = strlen(SOKOBAN_TITLE); @@ -1371,4 +1372,6 @@ void sokoban(void) sleep(HZ*2); lcd_clear_display(); sokoban_loop(); + + return MENU_OK; } -- cgit v1.2.3