X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Flibretro.c;fp=frontend%2Flibretro.c;h=940ff05aa346b2094c509dff27e09a7ea0e6a822;hp=37cccc4fedef6da879a85063766e48d38929d85c;hb=d148d26560527efdd71685df8eac0497827ca766;hpb=1fedf1ea555e4a6be68dd0ba384909ac21da65d0 diff --git a/frontend/libretro.c b/frontend/libretro.c index 37cccc4f..940ff05a 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -10,6 +10,10 @@ #include #include #include +#ifdef __MACH__ +#include +#include +#endif #include "../libpcsxcore/misc.h" #include "../libpcsxcore/psxcounters.h" @@ -1202,6 +1206,11 @@ void retro_init(void) int i, ret; bool found_bios = false; +#ifdef __MACH__ + // magic sauce to make the dynarec work on iOS + syscall(SYS_ptrace, 0 /*PTRACE_TRACEME*/, 0, 0, 0); +#endif + ret = emu_core_preinit(); ret |= emu_core_init(); if (ret != 0) {