equal
deleted
inserted
replaced
27 #import "SavedGamesViewController.h" |
27 #import "SavedGamesViewController.h" |
28 #import "RestoreViewController.h" |
28 #import "RestoreViewController.h" |
29 #import "MissionTrainingViewController.h" |
29 #import "MissionTrainingViewController.h" |
30 #import "GameInterfaceBridge.h" |
30 #import "GameInterfaceBridge.h" |
31 #import "Appirater.h" |
31 #import "Appirater.h" |
32 #import "ServerSetup.h" |
32 #import "ServerProtocolNetwork.h" |
33 |
33 |
34 |
34 |
35 @implementation MainMenuViewController |
35 @implementation MainMenuViewController |
36 @synthesize gameConfigViewController, settingsViewController, aboutViewController, savedGamesViewController, |
36 @synthesize gameConfigViewController, settingsViewController, aboutViewController, savedGamesViewController, |
37 restoreViewController, missionsViewController; |
37 restoreViewController, missionsViewController; |
120 } else { |
120 } else { |
121 // let's not prompt for rating when app crashed >_> |
121 // let's not prompt for rating when app crashed >_> |
122 [Appirater appLaunched]; |
122 [Appirater appLaunched]; |
123 } |
123 } |
124 |
124 |
125 |
|
126 /* |
125 /* |
127 ServerSetup *setup = [[ServerSetup alloc] init]; |
126 ServerProtocolNetwork *setup = [[ServerProtocolNetwork alloc] init]; |
128 if (isNetworkReachable()) { |
127 [NSThread detachNewThreadSelector:@selector(serverProtocol) |
129 DLog(@"network is reachable"); |
|
130 [NSThread detachNewThreadSelector:@selector(serverProtocol) |
|
131 toTarget:setup |
128 toTarget:setup |
132 withObject:nil]; |
129 withObject:nil]; |
133 } |
|
134 [setup release]; |
130 [setup release]; |
135 */ |
131 */ |
136 } |
132 } |
137 |
133 |
138 -(void) viewWillAppear:(BOOL)animated { |
134 -(void) viewWillAppear:(BOOL)animated { |