From: retro-wertz Date: Sat, 3 Aug 2019 13:04:35 +0000 (+0800) Subject: Fix corrupted memory card saves when using HLE X-Git-Tag: r23~155^2 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e49ac7a53e2fb04e24c6e75b7d38bf357210b96c;p=pcsx_rearmed.git Fix corrupted memory card saves when using HLE - This is fixed by adding the missing SaveMcd() to buwrite(). Tested on Wild Arms and Breath of Fire III --- diff --git a/libpcsxcore/psxbios.c b/libpcsxcore/psxbios.c index 928f0af0..ecd4264d 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 */ \