project_files/HedgewarsMobile/Classes/HedgewarsAppDelegate.m
changeset 5483 fc755bb8096d
parent 5224 6e8fbbfb0de5
child 5503 d8632f589008
equal deleted inserted replaced
5482:c047e70c53f4 5483:fc755bb8096d
    23 #import "PascalImports.h"
    23 #import "PascalImports.h"
    24 #import "ObjcExports.h"
    24 #import "ObjcExports.h"
    25 #import "CommodityFunctions.h"
    25 #import "CommodityFunctions.h"
    26 #import "MainMenuViewController.h"
    26 #import "MainMenuViewController.h"
    27 #import "AVFoundation/AVAudioPlayer.h"
    27 #import "AVFoundation/AVAudioPlayer.h"
    28 #import "Appirater.h"
       
    29 #include <unistd.h>
    28 #include <unistd.h>
    30 
    29 
    31 
    30 
    32 @implementation SDLUIKitDelegate (customDelegate)
    31 @implementation SDLUIKitDelegate (customDelegate)
    33 
    32 
    95 }
    94 }
    96 
    95 
    97 // override the direct execution of SDL_main to allow us to implement our own frontend
    96 // override the direct execution of SDL_main to allow us to implement our own frontend
    98 -(void) postFinishLaunch {
    97 -(void) postFinishLaunch {
    99     [[UIApplication sharedApplication] setStatusBarHidden:YES];
    98     [[UIApplication sharedApplication] setStatusBarHidden:YES];
   100     [Appirater appLaunched];
       
   101 
    99 
   102     self.uiwindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
   100     self.uiwindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
   103 
   101 
   104     NSString *controllerName = (IS_IPAD() ? @"MainMenuViewController-iPad" : @"MainMenuViewController-iPhone");
   102     NSString *controllerName = (IS_IPAD() ? @"MainMenuViewController-iPad" : @"MainMenuViewController-iPhone");
   105     self.mainViewController = [[MainMenuViewController alloc] initWithNibName:controllerName bundle:nil];
   103     self.mainViewController = [[MainMenuViewController alloc] initWithNibName:controllerName bundle:nil];