From 0f2dee0f3abf319a08a8540982fc1e81e9a97a53 Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 24 Dec 2014 01:18:16 +0200 Subject: [PATCH] cdrom: handle old savestates better I still have to many of them and use them for testing.. --- libpcsxcore/cdrom.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; + } } } -- 2.39.5