summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/sdl/button-sdl.c
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2011-02-15 19:43:04 +0000
committerThomas Jarosch <tomj@simonv.com>2011-02-15 19:43:04 +0000
commit258626f4550be2e586c9e5acf20cb71ee001a8e4 (patch)
tree24659c17ed31eac362056253392c960898540899 /firmware/target/hosted/sdl/button-sdl.c
parent1f85259ef15e51fa912324b635e2474aff4c0a0f (diff)
downloadrockbox-258626f4550be2e586c9e5acf20cb71ee001a8e4.tar.gz
rockbox-258626f4550be2e586c9e5acf20cb71ee001a8e4.zip
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
Diffstat (limited to 'firmware/target/hosted/sdl/button-sdl.c')
-rw-r--r--firmware/target/hosted/sdl/button-sdl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/hosted/sdl/button-sdl.c b/firmware/target/hosted/sdl/button-sdl.c
index 25dad09341..9c8188a12f 100644
--- a/firmware/target/hosted/sdl/button-sdl.c
+++ b/firmware/target/hosted/sdl/button-sdl.c
@@ -261,7 +261,12 @@ static bool event_handler(SDL_Event *event)
261 break; 261 break;
262 } 262 }
263 case SDL_QUIT: 263 case SDL_QUIT:
264 /* Post SYS_POWEROFF event. Will post SDL_USEREVENT in shutdown_hw() if successful. */
265 queue_broadcast(SYS_POWEROFF, 0);
266 break;
267 case SDL_USEREVENT:
264 return true; 268 return true;
269 break;
265 } 270 }
266 271
267 return false; 272 return false;