From d148d26560527efdd71685df8eac0497827ca766 Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 19 Sep 2016 02:40:17 +0300 Subject: drc: try to support w^x platforms like iOS untested... --- frontend/libretro.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'frontend') diff --git a/frontend/libretro.c b/frontend/libretro.c index 37cccc4..940ff05 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) { -- cgit v1.2.3