1
0
Fork 0
forked from len0rd/rockbox

New feature: clean shutdown if you press OFF twice in the file browser, or select "Shut

off" in the main menu. Players only have the menu option, due to lack of keys.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4940 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2004-07-24 21:26:41 +00:00
parent 6b8d020876
commit 5b5003dcb1
9 changed files with 113 additions and 13 deletions

View file

@ -1012,18 +1012,18 @@ static bool dirbrowse(char *root, int *dirfilter)
break;
#ifdef HAVE_RECORDER_KEYPAD
case BUTTON_OFF:
bookmark_autobookmark();
mpeg_stop();
status_draw(false);
restore = true;
break;
case BUTTON_OFF | BUTTON_REL:
#else
case BUTTON_STOP | BUTTON_REL:
#endif
settings_save();
/* Stop the music if it is playing, else show the shutdown
screen */
if(mpeg_status())
mpeg_stop();
else {
if (!charger_inserted()) {
shutdown_screen();
restore = true;
}
}
break;
#ifdef HAVE_RECORDER_KEYPAD