diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-08-10 22:48:55 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-08-10 22:48:55 +0000 |
commit | 2c4cae1bf3d91b753f246e6fc89d6ff7e4c0241b (patch) | |
tree | 0c84720dbd69c8bb6f6ce399eeb063dcd79c1bbd /apps/plugins | |
parent | 6bc9abcceb04599497e7dd270a75d232f3a4a834 (diff) |
Let solitaire save its settings when performing shutdown from inside the game or menu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14276 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/lib/oldmenuapi.c | 2 | ||||
-rw-r--r-- | apps/plugins/solitaire.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/lib/oldmenuapi.c b/apps/plugins/lib/oldmenuapi.c index dbe151daf9..742d394a50 100644 --- a/apps/plugins/lib/oldmenuapi.c +++ b/apps/plugins/lib/oldmenuapi.c @@ -112,9 +112,9 @@ int menu_show(int m) case ACTION_STD_OK: return rb->gui_synclist_get_sel_pos(&(menus[m].synclist)); - case ACTION_STD_CANCEL: case ACTION_STD_MENU: + case SYS_POWEROFF: exit = true; break; diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c index 92441baa19..05ff25b721 100644 --- a/apps/plugins/solitaire.c +++ b/apps/plugins/solitaire.c @@ -1579,6 +1579,9 @@ int solitaire( void ) } break; + case SYS_POWEROFF: + return SOLITAIRE_QUIT; + default: if( rb->default_event_handler( button ) == SYS_USB_CONNECTED ) return SOLITAIRE_USB; |