project_files/HedgewarsMobile/Classes/SDL_uikitappdelegate.m
changeset 3737 2ba6ac8a114b
parent 3697 d5b30d6373fc
child 3893 568bfd083465
equal deleted inserted replaced
3736:d8982f9e7e2c 3737:2ba6ac8a114b
   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