project_files/HedgewarsMobile/Classes/SavedGamesViewController.m
changeset 4912 862b134284b2
parent 4861 91f889289a47
child 4976 088d40d8aba2
equal deleted inserted replaced
4911:5d10bd725efe 4912:862b134284b2
   224     if ([statsPage respondsToSelector:@selector(setModalPresentationStyle:)])
   224     if ([statsPage respondsToSelector:@selector(setModalPresentationStyle:)])
   225         statsPage.modalPresentationStyle = UIModalPresentationPageSheet;
   225         statsPage.modalPresentationStyle = UIModalPresentationPageSheet;
   226     // avoid showing the stat page immediately, but wait for 3 seconds
   226     // avoid showing the stat page immediately, but wait for 3 seconds
   227     [self performSelector:@selector(presentModalViewController:animated:) withObject:statsPage afterDelay:3];
   227     [self performSelector:@selector(presentModalViewController:animated:) withObject:statsPage afterDelay:3];
   228 
   228 
   229     NSArray *stats = [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
   229     NSArray *stats;
       
   230     if (IS_DUALHEAD()) {
       
   231         stats = [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
       
   232         [self presentModalViewController:statsPage animated:NO];
       
   233     } else {
       
   234         [self performSelector:@selector(presentModalViewController:animated:) withObject:statsPage afterDelay:3];
       
   235         stats = [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
       
   236     }
       
   237 
   230     if ([stats count] <= 1) {
   238     if ([stats count] <= 1) {
   231         DLog(@"%@",stats);
   239         DLog(@"%@",stats);
   232         [statsPage dismissModalViewControllerAnimated:NO];
   240         [statsPage dismissModalViewControllerAnimated:NO];
   233     } else {
   241     } else {
   234         statsPage.statsArray = stats;
   242         statsPage.statsArray = stats;