aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authornotaz2016-09-21 02:24:37 +0300
committernotaz2016-09-21 02:24:37 +0300
commit9766e77ddec3157cbf8b7da407b99f47467a8f72 (patch)
tree4684ad5828896ca870ffa6fe8fe53af943141cc2 /frontend
parent38b1da12aade33bf94bdbe71a3988db6f57fb012 (diff)
parent1e212a25c55c298490867c2ded029c82db1d2b9d (diff)
downloadpcsx_rearmed-9766e77ddec3157cbf8b7da407b99f47467a8f72.tar.gz
pcsx_rearmed-9766e77ddec3157cbf8b7da407b99f47467a8f72.tar.bz2
pcsx_rearmed-9766e77ddec3157cbf8b7da407b99f47467a8f72.zip
Merge branch 'mainline' into libretro
Diffstat (limited to 'frontend')
-rw-r--r--frontend/libretro.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/frontend/libretro.c b/frontend/libretro.c
index 444719a..1e86509 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"
@@ -1550,6 +1554,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
+
#ifdef _3DS
psxMapHook = pl_3ds_mmap;
psxUnmapHook = pl_3ds_munmap;