project_files/HedgewarsMobile/Classes/GameConfigViewController.m
changeset 5002 a9c44a8ffec8
parent 4976 088d40d8aba2
child 5156 641abe679bf0
equal deleted inserted replaced
5001:312f4dd41753 5002:a9c44a8ffec8
    18  * File created on 18/04/2010.
    18  * File created on 18/04/2010.
    19  */
    19  */
    20 
    20 
    21 
    21 
    22 #import "GameConfigViewController.h"
    22 #import "GameConfigViewController.h"
    23 #import "SDL_uikitappdelegate.h"
       
    24 #import "MapConfigViewController.h"
    23 #import "MapConfigViewController.h"
    25 #import "TeamConfigViewController.h"
    24 #import "TeamConfigViewController.h"
    26 #import "SchemeWeaponConfigViewController.h"
    25 #import "SchemeWeaponConfigViewController.h"
    27 #import "HelpPageViewController.h"
    26 #import "HelpPageViewController.h"
    28 #import "StatsPageViewController.h"
    27 #import "StatsPageViewController.h"
   240     if ([statsPage respondsToSelector:@selector(setModalPresentationStyle:)])
   239     if ([statsPage respondsToSelector:@selector(setModalPresentationStyle:)])
   241         statsPage.modalPresentationStyle = UIModalPresentationPageSheet;
   240         statsPage.modalPresentationStyle = UIModalPresentationPageSheet;
   242 
   241 
   243     NSArray *stats;
   242     NSArray *stats;
   244     if (IS_DUALHEAD()) {
   243     if (IS_DUALHEAD()) {
   245         stats = [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
   244         stats = [[HedgewarsAppDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
   246         [self presentModalViewController:statsPage animated:NO];
   245         [self presentModalViewController:statsPage animated:NO];
   247     } else {
   246     } else {
   248         [self performSelector:@selector(presentModalViewController:animated:) withObject:statsPage afterDelay:3];
   247         [self performSelector:@selector(presentModalViewController:animated:) withObject:statsPage afterDelay:3];
   249         stats = [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
   248         stats = [[HedgewarsAppDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
   250     }
   249     }
   251 
   250 
   252     if ([stats count] <= 1) {
   251     if ([stats count] <= 1) {
   253         DLog(@"%@",stats);
   252         DLog(@"%@",stats);
   254         [statsPage dismissModalViewControllerAnimated:NO];
   253         [statsPage dismissModalViewControllerAnimated:NO];