diff options
author | notaz | 2014-12-24 01:18:16 +0200 |
---|---|---|
committer | notaz | 2014-12-24 01:18:16 +0200 |
commit | 0f2dee0f3abf319a08a8540982fc1e81e9a97a53 (patch) | |
tree | 3cf4be36d4f50db4b4576309045ebd760c421047 /libpcsxcore | |
parent | 03f55e6b49eb81d099f33b67ee6b5fa4620a54bc (diff) | |
download | pcsx_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.c | 6 |
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; + } } } |