mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Create AppDelegate the standard way instead of in PPSSPPUIApplication init
This commit is contained in:
parent
e82237bb0d
commit
5b857f08ed
2 changed files with 1 additions and 8 deletions
|
@ -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];
|
||||
|
|
|
@ -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]));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue