equal
deleted
inserted
replaced
27 #import "jumphack.h" |
27 #import "jumphack.h" |
28 #import "SDL_video.h" |
28 #import "SDL_video.h" |
29 #import "GameSetup.h" |
29 #import "GameSetup.h" |
30 #import "PascalImports.h" |
30 #import "PascalImports.h" |
31 #import "MainMenuViewController.h" |
31 #import "MainMenuViewController.h" |
32 #import "overlayViewController.h" |
32 #import "OverlayViewController.h" |
33 |
33 |
34 #ifdef main |
34 #ifdef main |
35 #undef main |
35 #undef main |
36 #endif |
36 #endif |
37 |
37 |
75 [setup startThread:@"engineProtocol"]; |
75 [setup startThread:@"engineProtocol"]; |
76 const char **gameArgs = [setup getSettings]; |
76 const char **gameArgs = [setup getSettings]; |
77 [setup release]; |
77 [setup release]; |
78 |
78 |
79 // overlay with controls, become visible after 2 seconds |
79 // overlay with controls, become visible after 2 seconds |
80 overlayController = [[overlayViewController alloc] initWithNibName:@"overlayViewController" bundle:nil]; |
80 overlayController = [[OverlayViewController alloc] initWithNibName:@"OverlayViewController" bundle:nil]; |
81 [uiwindow addSubview:overlayController.view]; |
81 [uiwindow addSubview:overlayController.view]; |
82 [overlayController release]; |
82 [overlayController release]; |
83 |
83 |
84 isInGame = YES; |
84 isInGame = YES; |
85 Game(gameArgs); // this is the pascal fuction that starts the game |
85 Game(gameArgs); // this is the pascal fuction that starts the game |
98 return [documentsDirectory stringByAppendingPathComponent:fileName]; |
98 return [documentsDirectory stringByAppendingPathComponent:fileName]; |
99 } |
99 } |
100 |
100 |
101 // override the direct execution of SDL_main to allow us to implement the frontend (even using a nib) |
101 // override the direct execution of SDL_main to allow us to implement the frontend (even using a nib) |
102 -(void) applicationDidFinishLaunching:(UIApplication *)application { |
102 -(void) applicationDidFinishLaunching:(UIApplication *)application { |
103 [application setStatusBarHidden:YES animated:NO]; |
103 //[application setStatusBarHidden:YES animated:NO]; |
104 [application setStatusBarOrientation:UIInterfaceOrientationLandscapeRight animated:NO]; |
104 [application setStatusBarHidden:YES withAnimation:NO]; |
|
105 [application setStatusBarOrientation:UIInterfaceOrientationLandscapeRight animated:NO]; |
105 |
106 |
106 self.uiwindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; |
107 self.uiwindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; |
107 self.uiwindow.backgroundColor = [UIColor blackColor]; |
108 self.uiwindow.backgroundColor = [UIColor blackColor]; |
108 |
109 |
109 self.viewController = [[MainMenuViewController alloc] initWithNibName:@"MainMenuViewController" bundle:nil]; |
110 self.viewController = [[MainMenuViewController alloc] initWithNibName:@"MainMenuViewController" bundle:nil]; |