src/video/uikit/SDL_uikitappdelegate.m
changeset 3422 ec4db979dddb
parent 3400 4ec48602f1db
child 3685 64ce267332c6
     1.1 --- a/src/video/uikit/SDL_uikitappdelegate.m	Fri Oct 30 05:02:47 2009 +0000
     1.2 +++ b/src/video/uikit/SDL_uikitappdelegate.m	Mon Nov 02 07:55:42 2009 +0000
     1.3 @@ -71,11 +71,8 @@
     1.4  	return self;
     1.5  }
     1.6  
     1.7 -- (void)applicationDidFinishLaunching:(UIApplication *)application {
     1.8 -			
     1.9 -	/* Set working directory to resource path */
    1.10 -	[[NSFileManager defaultManager] changeCurrentDirectoryPath: [[NSBundle mainBundle] resourcePath]];
    1.11 -	
    1.12 +- (void)postFinishLaunch {
    1.13 +
    1.14  	/* run the user's application, passing argc and argv */
    1.15  	int exit_status = SDL_main(forward_argc, forward_argv);
    1.16  	
    1.17 @@ -88,7 +85,15 @@
    1.18  		
    1.19  	/* exit, passing the return status from the user's application */
    1.20  	exit(exit_status);
    1.21 -		
    1.22 +}
    1.23 +
    1.24 +- (void)applicationDidFinishLaunching:(UIApplication *)application {
    1.25 +			
    1.26 +	/* Set working directory to resource path */
    1.27 +	[[NSFileManager defaultManager] changeCurrentDirectoryPath: [[NSBundle mainBundle] resourcePath]];
    1.28 +	
    1.29 +	[self performSelector:@selector(postFinishLaunch) withObject:nil
    1.30 +afterDelay:0.0];
    1.31  }
    1.32  
    1.33  - (void)applicationWillTerminate:(UIApplication *)application {