X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Flightrec%2Fplugin.c;h=bd3ee222581747a35446e44cfc8fe4302cbc3d61;hb=6f860c2b80233f3721c08d7fb3e5e37423b84149;hp=8f12b9797d70baec9957cb9b551d7cd320b49bb8;hpb=6ce0b00a79f4fa7c4a1735be9f48bfbc644b080c;p=pcsx_rearmed.git diff --git a/libpcsxcore/lightrec/plugin.c b/libpcsxcore/lightrec/plugin.c index 8f12b979..bd3ee222 100644 --- a/libpcsxcore/lightrec/plugin.c +++ b/libpcsxcore/lightrec/plugin.c @@ -54,7 +54,6 @@ static char *name = "retroarch.exe"; static bool use_lightrec_interpreter; static bool use_pcsx_interpreter; static bool booting; -static u32 lightrec_begin_cycles; enum my_cp2_opcodes { OP_CP2_RTPS = 0x01, @@ -345,7 +344,7 @@ static bool lightrec_can_hw_direct(u32 kaddr, bool is_write, u8 size) case 0x1f801074: return !is_write; default: - return is_write || kaddr < 0x1f801c00 || kaddr >= 0x1f801e00; + return kaddr < 0x1f801c00 || kaddr >= 0x1f801e00; } default: switch (kaddr) { @@ -403,9 +402,6 @@ static int lightrec_plugin_init(void) } use_lightrec_interpreter = !!getenv("LIGHTREC_INTERPRETER"); - if (getenv("LIGHTREC_BEGIN_CYCLES")) - lightrec_begin_cycles = (unsigned int) strtol( - getenv("LIGHTREC_BEGIN_CYCLES"), NULL, 0); lightrec_state = lightrec_init(name, lightrec_map, ARRAY_SIZE(lightrec_map),