X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=frontend%2Flibretro.c;h=4c285cfbc26f83b34cc7f8e92cabb4ff3668a00c;hb=3d680478922d5f28e3dbe471308cc27a70e31fdf;hp=37cccc4fedef6da879a85063766e48d38929d85c;hpb=8f2bb0cbd20c00475196d1efb72103b65e57bc66;p=pcsx_rearmed.git diff --git a/frontend/libretro.c b/frontend/libretro.c index 37cccc4f..4c285cfb 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" @@ -1059,6 +1063,7 @@ static void update_variables(bool in_flight) } } #endif + psxCpu->ApplyConfig(); var.value = "NULL"; var.key = "pcsx_rearmed_spu_reverb"; @@ -1202,6 +1207,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) {