aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authornotaz2019-03-13 00:56:19 +0200
committerGitHub2019-03-13 00:56:19 +0200
commit8a55ebcc07d4f860633db8c77bb9e16bcfa03313 (patch)
tree44014f43d1464c981448e374e7d02bff3bdf615e /plugins
parent3de7d67356c1db36689ae53156944426d77f418f (diff)
parent210476c77ec6d0160e66ab6e9a45ad64fe5e50ce (diff)
downloadpcsx_rearmed-8a55ebcc07d4f860633db8c77bb9e16bcfa03313.tar.gz
pcsx_rearmed-8a55ebcc07d4f860633db8c77bb9e16bcfa03313.tar.bz2
pcsx_rearmed-8a55ebcc07d4f860633db8c77bb9e16bcfa03313.zip
Merge pull request #123 from gameblabla/diablofix_hack
Diablo Music fix for PCSX Rearmed. (optional hack)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/dfsound/registers.c2
-rw-r--r--plugins/dfsound/spu_config.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/dfsound/registers.c b/plugins/dfsound/registers.c
index 91bcaf8..bb64658 100644
--- a/plugins/dfsound/registers.c
+++ b/plugins/dfsound/registers.c
@@ -352,7 +352,7 @@ static void SoundOn(int start,int end,unsigned short val)
if((val&1) && regAreaGet(ch,6)) // mmm... start has to be set before key on !?!
{
spu.s_chan[ch].pCurr=spu.spuMemC+((regAreaGet(ch,6)&~1)<<3); // must be block aligned
- spu.s_chan[ch].pLoop=spu.spuMemC+((regAreaGet(ch,14)&~1)<<3);
+ if (spu_config.idiablofix == 0) spu.s_chan[ch].pLoop=spu.spuMemC+((regAreaGet(ch,14)&~1)<<3);
spu.dwNewChannel|=(1<<ch);
}
}
diff --git a/plugins/dfsound/spu_config.h b/plugins/dfsound/spu_config.h
index 3e88a2c..6b46bf3 100644
--- a/plugins/dfsound/spu_config.h
+++ b/plugins/dfsound/spu_config.h
@@ -7,6 +7,7 @@ typedef struct
int iUseReverb;
int iUseInterpolation;
int iTempo;
+ int idiablofix;
int iUseThread;
int iUseFixedUpdates; // output fixed number of samples/frame