From: gameblabla Date: Sun, 17 Feb 2019 08:26:51 +0000 (+0100) Subject: psxmem: Reads of PIO Expansion area read all-ones. X-Git-Tag: r23~161^2 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23643ee736c1cba08ac3f16028d238e295bb9dc7;p=pcsx_rearmed.git psxmem: Reads of PIO Expansion area read all-ones. Patch by senquack : "Fixes 'Tetris with Card Captor Sakura - Eternal Heart (Japan)' startup. Thanks to gameblabla for finding this issue and pointing out that Mednafen had a fix for it. It's adapted here in a much simpler form." --- diff --git a/libpcsxcore/psxmem.c b/libpcsxcore/psxmem.c index 14fd9113..a1a641df 100644 --- a/libpcsxcore/psxmem.c +++ b/libpcsxcore/psxmem.c @@ -187,7 +187,7 @@ void psxMemReset() { char bios[1024]; memset(psxM, 0, 0x00200000); - memset(psxP, 0, 0x00010000); + memset(psxP, 0xff, 0x00010000); if (strcmp(Config.Bios, "HLE") != 0) { sprintf(bios, "%s/%s", Config.BiosDir, Config.Bios);