project_files/HedgewarsMobile/Classes/GameConfigViewController.m
changeset 4754 a0fd8211c00f
parent 4504 8906b2409d97
child 4757 7ca9ebb6895d
equal deleted inserted replaced
4752:d65705a67c4e 4754:a0fd8211c00f
   224                                     self.schemeWeaponConfigViewController.selectedScheme,@"scheme",
   224                                     self.schemeWeaponConfigViewController.selectedScheme,@"scheme",
   225                                     self.schemeWeaponConfigViewController.selectedWeapon,@"weapon",
   225                                     self.schemeWeaponConfigViewController.selectedWeapon,@"weapon",
   226                                     [NSNumber numberWithInt:self.interfaceOrientation],@"orientation",
   226                                     [NSNumber numberWithInt:self.interfaceOrientation],@"orientation",
   227                                     nil];
   227                                     nil];
   228 
   228 
   229     NSDictionary *allDataNecessary = [NSDictionary dictionaryWithObjectsAndKeys:gameDictionary,@"game_dictionary", @"",@"savefile",
   229     NSDictionary *allDataNecessary = [NSDictionary dictionaryWithObjectsAndKeys:gameDictionary,@"game_dictionary",
   230                                       [NSNumber numberWithBool:NO],@"netgame", nil];
   230                                       @"",@"savefile",
       
   231                                       [NSNumber numberWithBool:NO],@"netgame",
       
   232                                       nil];
   231     if (IS_IPAD())
   233     if (IS_IPAD())
   232         [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
   234         [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
   233     else {
   235     else {
   234         // this causes a sporadic crash on the ipad but without this rotation doesn't work on iphone
   236         // this causes a sporadic crash on the ipad but without this rotation doesn't work on iphone
   235         UIViewController *dummy = [[UIViewController alloc] init];
   237         UIViewController *dummy = [[UIViewController alloc] init];