cocoaTouch/SDLOverrides/SDL_uikitappdelegate.m
changeset 3374 0d522416d97f
parent 3365 37ac593e9027
child 3385 361bd29293f4
equal deleted inserted replaced
3373:c1ff724a5c34 3374:0d522416d97f
    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 #import "CommodityFunctions.h"
    33 
    34 
    34 #ifdef main
    35 #ifdef main
    35 #undef main
    36 #undef main
    36 #endif
    37 #endif
    37 
    38 
   119     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
   120     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
   120         viewController = [[MainMenuViewController alloc] initWithNibName:@"MainMenuViewController-iPad" bundle:nil];
   121         viewController = [[MainMenuViewController alloc] initWithNibName:@"MainMenuViewController-iPad" bundle:nil];
   121     else
   122     else
   122         viewController = [[MainMenuViewController alloc] initWithNibName:@"MainMenuViewController-iPhone" bundle:nil];
   123         viewController = [[MainMenuViewController alloc] initWithNibName:@"MainMenuViewController-iPhone" bundle:nil];
   123 	[uiwindow addSubview:viewController.view];
   124 	[uiwindow addSubview:viewController.view];
   124 	
   125     
   125 	// Set working directory to resource path
   126 	// Set working directory to resource path
   126 	[[NSFileManager defaultManager] changeCurrentDirectoryPath:[[NSBundle mainBundle] resourcePath]];
   127 	[[NSFileManager defaultManager] changeCurrentDirectoryPath:[[NSBundle mainBundle] resourcePath]];
   127 
   128 
   128 	[uiwindow makeKeyAndVisible];
   129 	[uiwindow makeKeyAndVisible];
   129 	[uiwindow layoutSubviews];
   130 	[uiwindow layoutSubviews];