aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authornotaz2019-08-03 16:22:14 +0300
committerGitHub2019-08-03 16:22:14 +0300
commit3c8913013a3bb1908186342759f881baa16602b9 (patch)
treed4136a51d906a2eb66a2bdf485bf6b4d7b1f01c3 /libpcsxcore
parent39ecfba491cd7ae374847b990b189e89ff878f1c (diff)
parente49ac7a53e2fb04e24c6e75b7d38bf357210b96c (diff)
downloadpcsx_rearmed-3c8913013a3bb1908186342759f881baa16602b9.tar.gz
pcsx_rearmed-3c8913013a3bb1908186342759f881baa16602b9.tar.bz2
pcsx_rearmed-3c8913013a3bb1908186342759f881baa16602b9.zip
Merge pull request #139 from retro-wertz/patch-3
Fix corrupted memory card saves when using HLE
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/psxbios.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpcsxcore/psxbios.c b/libpcsxcore/psxbios.c
index 928f0af..ecd4264 100644
--- a/libpcsxcore/psxbios.c
+++ b/libpcsxcore/psxbios.c
@@ -346,6 +346,7 @@ static inline void LoadRegs() {
ptr = Mcd##mcd##Data + offset; \
memcpy(ptr, Ra1, length); \
FDesc[1 + mcd].offset += length; \
+ SaveMcd(Config.Mcd##mcd, Mcd##mcd##Data, offset, length); \
if (FDesc[1 + mcd].mode & 0x8000) { \
DeliverEvent(0x11, 0x2); /* 0xf0000011, 0x0004 */ \
DeliverEvent(0x81, 0x2); /* 0xf4000001, 0x0004 */ \