Permalink
Browse files

iOS: call PROFILE_INIT so we don't crash with USE_PROFILER

  • Loading branch information...
KentuckyCompass committed Jan 2, 2018
1 parent 2079408 commit 873dcaa126949906e6289798b3164a1c8dd61e6a
Showing with 3 additions and 0 deletions.
  1. +3 −0 ios/main.mm
View
@@ -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/"];

0 comments on commit 873dcaa

Please sign in to comment.