equal
deleted
inserted
replaced
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 { |