diff options
author | notaz | 2016-09-19 02:40:17 +0300 |
---|---|---|
committer | notaz | 2016-09-19 02:43:55 +0300 |
commit | d148d26560527efdd71685df8eac0497827ca766 (patch) | |
tree | 46a2775848ca37860515062b3a383632ae0acb2b /frontend/libretro.c | |
parent | 1fedf1ea555e4a6be68dd0ba384909ac21da65d0 (diff) | |
download | pcsx_rearmed-d148d26560527efdd71685df8eac0497827ca766.tar.gz pcsx_rearmed-d148d26560527efdd71685df8eac0497827ca766.tar.bz2 pcsx_rearmed-d148d26560527efdd71685df8eac0497827ca766.zip |
drc: try to support w^x platforms like iOS
untested...
Diffstat (limited to 'frontend/libretro.c')
-rw-r--r-- | frontend/libretro.c | 9 |
1 files changed, 9 insertions, 0 deletions
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 <stdlib.h> #include <string.h> #include <strings.h> +#ifdef __MACH__ +#include <unistd.h> +#include <sys/syscall.h> +#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) { |