Skip to content

Commit

Permalink
iOS: call PROFILE_INIT so we don't crash with USE_PROFILER
Browse files Browse the repository at this point in the history
  • Loading branch information
KentuckyCompass committed Jan 2, 2018
1 parent 2079408 commit 873dcaa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ios/main.mm
Expand Up @@ -11,6 +11,7 @@
#import "PPSSPPUIApplication.h"

#include "base/NativeApp.h"
#include "profiler/profiler.h"

@interface UIApplication (Private)
-(void) suspend;
Expand Down Expand Up @@ -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/"];
Expand Down

0 comments on commit 873dcaa

Please sign in to comment.