X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=libpcsxcore%2Fpsxmem.c;h=61b14c6550b651eeda5d8000e7456a1dbfe8fa44;hp=3caf889ba41ba1681319b9e47d5cabfaf4a96587;hb=fa18abb20fe2316f078023ddec6068bafef86014;hpb=41e82ad46e60f9c3291ff81ebe4a07512b1194c5 diff --git a/libpcsxcore/psxmem.c b/libpcsxcore/psxmem.c index 3caf889b..61b14c65 100644 --- a/libpcsxcore/psxmem.c +++ b/libpcsxcore/psxmem.c @@ -176,7 +176,11 @@ int psxMemInit() { memcpy(psxMemWLUT + 0x8000, psxMemWLUT, 0x80 * sizeof(void *)); memcpy(psxMemWLUT + 0xa000, psxMemWLUT, 0x80 * sizeof(void *)); - psxMemWLUT[0x1f00] = (u8 *)psxP; + // Don't allow writes to PIO Expansion region (psxP) to take effect. + // NOTE: Not sure if this is needed to fix any games but seems wise, + // seeing as some games do read from PIO as part of copy-protection + // check. (See fix in psxMemReset() regarding psxP region reads). + psxMemWLUT[0x1f00] = NULL; psxMemWLUT[0x1f80] = (u8 *)psxH; return 0;