aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authornotaz2014-12-24 01:18:16 +0200
committernotaz2014-12-24 01:18:16 +0200
commit0f2dee0f3abf319a08a8540982fc1e81e9a97a53 (patch)
tree3cf4be36d4f50db4b4576309045ebd760c421047 /libpcsxcore
parent03f55e6b49eb81d099f33b67ee6b5fa4620a54bc (diff)
downloadpcsx_rearmed-0f2dee0f3abf319a08a8540982fc1e81e9a97a53.tar.gz
pcsx_rearmed-0f2dee0f3abf319a08a8540982fc1e81e9a97a53.tar.bz2
pcsx_rearmed-0f2dee0f3abf319a08a8540982fc1e81e9a97a53.zip
cdrom: handle old savestates better
I still have to many of them and use them for testing..
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/cdrom.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c
index 38fecf7..b686855 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;
+ }
}
}