notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
spu: patch up more savestate issues
[pcsx_rearmed.git]
/
plugins
/
dfsound
/
registers.c
diff --git
a/plugins/dfsound/registers.c
b/plugins/dfsound/registers.c
index
5d79f25
..
1e79c0e
100644
(file)
--- a/
plugins/dfsound/registers.c
+++ b/
plugins/dfsound/registers.c
@@
-144,6
+144,7
@@
void CALLBACK SPUwriteRegister(unsigned long reg, unsigned short val,
break;
\r
//-------------------------------------------------//
\r
case H_SPUctrl:
\r
break;
\r
//-------------------------------------------------//
\r
case H_SPUctrl:
\r
+ spu.spuStat = (spu.spuStat & ~0x3f) | (val & 0x3f);
\r
spu.spuStat &= ~STAT_IRQ | val;
\r
if (!(spu.spuCtrl & CTRL_IRQ)) {
\r
if (val & CTRL_IRQ)
\r
spu.spuStat &= ~STAT_IRQ | val;
\r
if (!(spu.spuCtrl & CTRL_IRQ)) {
\r
if (val & CTRL_IRQ)
\r
@@
-365,7
+366,7
@@
unsigned short CALLBACK SPUreadRegister(unsigned long reg, unsigned int cycles)
return spu.spuCtrl;
\r
\r
case H_SPUstat:
\r
return spu.spuCtrl;
\r
\r
case H_SPUstat:
\r
- return
(spu.spuStat & ~0x3F) | (spu.spuCtrl & 0x3F)
;
\r
+ return
spu.spuStat
;
\r
\r
case H_SPUaddr:
\r
return (unsigned short)(spu.spuAddr>>3);
\r
\r
case H_SPUaddr:
\r
return (unsigned short)(spu.spuAddr>>3);
\r