project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m
changeset 5194 851c6fbb44e6
parent 5177 b850b544addc
child 5195 1bfa81f0bc21
--- a/project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m	Fri Apr 29 17:11:08 2011 +0400
+++ b/project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m	Sat Apr 30 20:06:05 2011 +0200
@@ -61,7 +61,6 @@
 
     [self.overlayController setUseClassicMenu:[[dict objectForKey:@"menu"] boolValue]];
     [self.overlayController setInitialOrientation:[[dict objectForKey:@"orientation"] intValue]];
-    objcExportsInit(self.overlayController);
 
     UIWindow *gameWindow = (IS_DUALHEAD() ? [HedgewarsAppDelegate sharedAppDelegate].uiwindow : [[UIApplication sharedApplication] keyWindow]);
     [gameWindow addSubview:self.overlayController.view];
@@ -129,6 +128,8 @@
     [localeString release];
     [ipcString release];
 
+    objcExportsInit(self.overlayController);
+
     // this is the pascal fuction that starts the game, wrapped around isInGame
     [HedgewarsAppDelegate sharedAppDelegate].isInGame = YES;
     Game(gameArgs);