notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
psxbios: Don't accept 400h as a valid sector.
[pcsx_rearmed.git]
/
frontend
/
libretro.c
diff --git
a/frontend/libretro.c
b/frontend/libretro.c
index
37cccc4
..
940ff05
100644
(file)
--- a/
frontend/libretro.c
+++ b/
frontend/libretro.c
@@
-10,6
+10,10
@@
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#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"
#include "../libpcsxcore/misc.h"
#include "../libpcsxcore/psxcounters.h"
@@
-1202,6
+1206,11
@@
void retro_init(void)
int i, ret;
bool found_bios = false;
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) {
ret = emu_core_preinit();
ret |= emu_core_init();
if (ret != 0) {