mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-07 22:37:15 +00:00
iOS: call PROFILE_INIT so we don't crash with USE_PROFILER
This commit is contained in:
parent
20794081ea
commit
873dcaa126
@ -11,6 +11,7 @@
|
||||
#import "PPSSPPUIApplication.h"
|
||||
|
||||
#include "base/NativeApp.h"
|
||||
#include "profiler/profiler.h"
|
||||
|
||||
@interface UIApplication (Private)
|
||||
-(void) suspend;
|
||||
@ -113,6 +114,8 @@ 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);
|
||||
|
||||
PROFILE_INIT();
|
||||
|
||||
@autoreleasepool {
|
||||
NSString *documentsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
|
||||
NSString *bundlePath = [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/assets/"];
|
||||
|
Loading…
x
Reference in New Issue
Block a user