Permalink
Browse files

Create AppDelegate the standard way instead of in PPSSPPUIApplication…

… init
  • Loading branch information...
KentuckyCompass committed Dec 31, 2017
1 parent e82237b commit 5b857f08ed4762bee66cd204e37352ed995fdb80
Showing with 1 addition and 8 deletions.
  1. +0 −6 ios/PPSSPPUIApplication.mm
  2. +1 −2 ios/main.mm
@@ -60,12 +60,6 @@
@implementation PPSSPPUIApplication
- (instancetype)init {
auto instance = [super init];
instance.delegate = [[AppDelegate alloc] init];
return instance;
}
- (void)decodeKeyEvent:(NSInteger *)eventMem {
NSInteger eventType = eventMem[GSEVENT_TYPE];
NSInteger eventScanCode = eventMem[GSEVENTKEY_KEYCODE];
View
@@ -113,7 +113,6 @@ int main(int argc, char *argv[])
// Simulates a debugger. Makes it possible to use JIT (though only W^X)
syscall(SYS_ptrace, 0 /*PTRACE_TRACEME*/, 0, 0, 0);
@autoreleasepool {
return UIApplicationMain(argc, argv, NSStringFromClass([PPSSPPUIApplication class]), nil);
//return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
return UIApplicationMain(argc, argv, NSStringFromClass([PPSSPPUIApplication class]), NSStringFromClass([AppDelegate class]));
}
}

0 comments on commit 5b857f0

Please sign in to comment.