cocoaTouch/SDLOverrides/SDL_uikitappdelegate.m
changeset 3026 1a44c0f2b83b
parent 3025 01682ec58eb0
child 3027 32890edaa483
equal deleted inserted replaced
3025:01682ec58eb0 3026:1a44c0f2b83b
    93 	NSLog(@"...Game is launching...");
    93 	NSLog(@"...Game is launching...");
    94 	const char **gameArgs = [setup getSettings];
    94 	const char **gameArgs = [setup getSettings];
    95 	[setup release];
    95 	[setup release];
    96     
    96     
    97     // overlay with controls
    97     // overlay with controls
    98     overlayController = [[overlayViewController alloc] initWithNibName:@"overlayViewController-iPad" bundle:nil];
    98     overlayController = [[overlayViewController alloc] initWithNibName:@"overlayViewController" bundle:nil];
    99     overlayController.view.alpha = 0;
    99     overlayController.view.alpha = 0;
   100     [uiwindow addSubview: overlayController.view];
   100     [uiwindow addSubview: overlayController.view];
   101     [NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(showMenuAfterwards) userInfo:nil repeats:NO];
   101     [NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(showMenuAfterwards) userInfo:nil repeats:NO];
   102     
   102     
   103 	Game(gameArgs); // this is the pascal fuction that starts the game
   103 	Game(gameArgs); // this is the pascal fuction that starts the game
   134 	[application setStatusBarOrientation:UIInterfaceOrientationLandscapeRight animated:NO];  
   134 	[application setStatusBarOrientation:UIInterfaceOrientationLandscapeRight animated:NO];  
   135 		
   135 		
   136 	self.uiwindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
   136 	self.uiwindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
   137 	self.uiwindow.backgroundColor = [UIColor blackColor];
   137 	self.uiwindow.backgroundColor = [UIColor blackColor];
   138 	
   138 	
   139 	self.viewController = [[MainMenuViewController alloc] initWithNibName:@"MainMenuViewController-iPad" bundle:nil];
   139 	self.viewController = [[MainMenuViewController alloc] initWithNibName:@"MainMenuViewController" bundle:nil];
   140 	
   140 	
   141 	// Set working directory to resource path
   141 	// Set working directory to resource path
   142 	[[NSFileManager defaultManager] changeCurrentDirectoryPath: [[NSBundle mainBundle] resourcePath]];
   142 	[[NSFileManager defaultManager] changeCurrentDirectoryPath: [[NSBundle mainBundle] resourcePath]];
   143 
   143 
   144 	[uiwindow addSubview:viewController.view];
   144 	[uiwindow addSubview:viewController.view];