210 DLog(@"sending config %@", gameDictionary); |
210 DLog(@"sending config %@", gameDictionary); |
211 |
211 |
212 if ([[gameDictionary allKeys] count] == 11) { |
212 if ([[gameDictionary allKeys] count] == 11) { |
213 NSDictionary *allDataNecessary = [NSDictionary dictionaryWithObjectsAndKeys:gameDictionary,@"game_dictionary", @"",@"savefile", |
213 NSDictionary *allDataNecessary = [NSDictionary dictionaryWithObjectsAndKeys:gameDictionary,@"game_dictionary", @"",@"savefile", |
214 [NSNumber numberWithBool:NO],@"netgame", nil]; |
214 [NSNumber numberWithBool:NO],@"netgame", nil]; |
|
215 // let's hide all the views while the game is on |
|
216 UIViewController *dummy = [[UIViewController alloc] init]; |
|
217 [self presentModalViewController:dummy animated:NO]; |
215 [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary]; |
218 [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary]; |
216 |
219 [self dismissModalViewControllerAnimated:NO]; |
217 // tell controllers that they're being reloaded |
220 [dummy release]; |
218 [self.mapConfigViewController viewWillAppear:YES]; |
|
219 [self.schemeWeaponConfigViewController viewWillAppear:YES]; |
|
220 } else { |
221 } else { |
221 DLog(@"gameconfig data not complete!!"); |
222 DLog(@"gameconfig data not complete!!"); |
222 [self.parentViewController dismissModalViewControllerAnimated:YES]; |
223 [self.parentViewController dismissModalViewControllerAnimated:YES]; |
223 |
224 |
224 // present an alert to the user, with an image on the ipad (too big for the iphone) |
225 // present an alert to the user, with an image on the ipad (too big for the iphone) |