From 873dcaa126949906e6289798b3164a1c8dd61e6a Mon Sep 17 00:00:00 2001 From: Kentucky Compass Date: Mon, 1 Jan 2018 19:01:10 -0800 Subject: [PATCH] iOS: call PROFILE_INIT so we don't crash with USE_PROFILER --- ios/main.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ios/main.mm b/ios/main.mm index 596e089bd5..27f9cbac71 100644 --- a/ios/main.mm +++ b/ios/main.mm @@ -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/"];