summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-03-16 08:20:57 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-03-16 08:20:57 +0000
commit9dae78e4816d4631dacc2f357011b3f429e00333 (patch)
tree93fe26f10b14d18a40ed572c6113f76bbc1bed95 /apps/plugins
parent3fa27cdf1e6849576d60d8af2c8914f2be3ffb01 (diff)
Restore the backlight setting properly when leaving Xobox
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9056 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/xobox.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/plugins/xobox.c b/apps/plugins/xobox.c
index b578ccbf53..2093ab1eab 100644
--- a/apps/plugins/xobox.c
+++ b/apps/plugins/xobox.c
@@ -797,17 +797,16 @@ enum plugin_status plugin_start (struct plugin_api *api, void *parameter)
if (rb->global_settings->backlight_timeout > 0)
rb->backlight_set_timeout (1);
+ ret = PLUGIN_OK;
+
randomize ();
- ret = game_menu ();
- if (ret == MENU_START) {
+ if (game_menu () == MENU_START) {
init_game ();
ret = xobox_loop ();
- return ret;
}
rb->backlight_set_timeout (rb->global_settings->backlight_timeout);
rb->lcd_setfont (FONT_UI);
-
- return PLUGIN_OK;
+ return ret;
}