From: notaz Date: Tue, 23 Dec 2014 23:18:16 +0000 (+0200) Subject: cdrom: handle old savestates better X-Git-Tag: r20~8 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f2dee0f3abf319a08a8540982fc1e81e9a97a53;p=pcsx_rearmed.git cdrom: handle old savestates better I still have to many of them and use them for testing.. --- diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c index 38fecf71..b6868557 100644 --- a/libpcsxcore/cdrom.c +++ b/libpcsxcore/cdrom.c @@ -1514,6 +1514,12 @@ int cdrFreeze(void *f, int Mode) { SysPrintf("cdrom: fixing up old savestate\n"); cdr.Reg2 = 7; } + // also did not save Attenuator.. + if ((cdr.AttenuatorLeftToLeft | cdr.AttenuatorLeftToRight + | cdr.AttenuatorRightToLeft | cdr.AttenuatorRightToRight) == 0) + { + cdr.AttenuatorLeftToLeft = cdr.AttenuatorRightToRight = 0x80; + } } }