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

This commit is contained in:
Kentucky Compass 2018-01-01 19:01:10 -08:00
parent 20794081ea
commit 873dcaa126

View File

@ -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/"];