equal
deleted
inserted
replaced
131 // set working directory to resource path |
131 // set working directory to resource path |
132 [[NSFileManager defaultManager] changeCurrentDirectoryPath:[[NSBundle mainBundle] resourcePath]]; |
132 [[NSFileManager defaultManager] changeCurrentDirectoryPath:[[NSBundle mainBundle] resourcePath]]; |
133 } |
133 } |
134 |
134 |
135 -(void) applicationWillTerminate:(UIApplication *)application { |
135 -(void) applicationWillTerminate:(UIApplication *)application { |
136 Mix_CloseAudio(); |
|
137 SDL_SendQuit(); |
136 SDL_SendQuit(); |
138 |
137 |
139 if (isInGame) { |
138 if (isInGame) { |
140 HW_terminate(YES); |
139 HW_terminate(YES); |
141 // hack to prevent automatic termination. See SDL_uikitevents.m for details |
140 // hack to prevent automatic termination. See SDL_uikitevents.m for details |