mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-06 21:25:03 -05:00
Fix the shutdown sequence for maemo, SDL and simulator builds
Do proper shutdown in RaaA builds like writeout of last.FM scrobbler file and other neat things. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29309 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1f85259ef1
commit
258626f455
4 changed files with 18 additions and 1 deletions
|
|
@ -261,7 +261,12 @@ static bool event_handler(SDL_Event *event)
|
|||
break;
|
||||
}
|
||||
case SDL_QUIT:
|
||||
/* Post SYS_POWEROFF event. Will post SDL_USEREVENT in shutdown_hw() if successful. */
|
||||
queue_broadcast(SYS_POWEROFF, 0);
|
||||
break;
|
||||
case SDL_USEREVENT:
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue