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]; |