project_files/HedgewarsMobile/Classes/GameSetup.m
changeset 4924 616b618814b5
parent 4861 91f889289a47
child 4976 088d40d8aba2
equal deleted inserted replaced
4923:c7829611c682 4924:616b618814b5
   392                         DLog(@"Unhandled stat message, see statsPage.cpp");
   392                         DLog(@"Unhandled stat message, see statsPage.cpp");
   393                         break;
   393                         break;
   394                 }
   394                 }
   395                 break;
   395                 break;
   396             case 'q':
   396             case 'q':
   397                 // game ended, can remove the savefile
   397                 // game ended, can remove the savefile and the trailing overlay (when dualhead)
   398                 [[NSFileManager defaultManager] removeItemAtPath:self.savePath error:nil];
   398                 [[NSFileManager defaultManager] removeItemAtPath:self.savePath error:nil];
       
   399                 if (IS_DUALHEAD())
       
   400                     [[NSNotificationCenter defaultCenter] postNotificationName:@"remove overlay" object:nil];
   399                 break;
   401                 break;
   400             case 'Q':
   402             case 'Q':
   401                 // game exited but not completed, nothing to do (just don't save the message)
   403                 // game exited but not completed, nothing to do (just don't save the message)
   402                 break;
   404                 break;
   403             default:
   405             default: