aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgameblabla2019-02-17 09:26:51 +0100
committergameblabla2019-02-17 09:26:51 +0100
commit23643ee736c1cba08ac3f16028d238e295bb9dc7 (patch)
tree3769d39215cc78c7e4fb559e62bb2d25823e6c4c
parentbebe989ba22f0bac230a0b8a75617ae895ea274f (diff)
downloadpcsx_rearmed-23643ee736c1cba08ac3f16028d238e295bb9dc7.tar.gz
pcsx_rearmed-23643ee736c1cba08ac3f16028d238e295bb9dc7.tar.bz2
pcsx_rearmed-23643ee736c1cba08ac3f16028d238e295bb9dc7.zip
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."
-rw-r--r--libpcsxcore/psxmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpcsxcore/psxmem.c b/libpcsxcore/psxmem.c
index 14fd911..a1a641d 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);