cocoaTouch/SDLOverrides/SDL_uikitappdelegate.m
changeset 3250 d5cd1a617123
parent 3199 1a9938a27677
child 3270 9bd8fb1707b9
equal deleted inserted replaced
3249:74a506c9d71b 3250:d5cd1a617123
   122 
   122 
   123 -(void) applicationWillTerminate:(UIApplication *)application {
   123 -(void) applicationWillTerminate:(UIApplication *)application {
   124 	SDL_SendQuit();
   124 	SDL_SendQuit();
   125     if (isInGame) {
   125     if (isInGame) {
   126         HW_terminate(YES);
   126         HW_terminate(YES);
   127         // hack to prevent automatic termination.  See SDL_uikitevents.m for details
   127         // hack to prevent automatic termination. See SDL_uikitevents.m for details
   128         longjmp(*(jump_env()), 1);
   128         longjmp(*(jump_env()), 1);
   129     }
   129     }
   130 }
   130 }
   131 
   131 
   132 -(void) applicationWillResignActive:(UIApplication *)application {
   132 -(void) applicationWillResignActive:(UIApplication *)application {