From b71ad0f01813c0ad3c1fddc7202ee93c99d04831 Mon Sep 17 00:00:00 2001 From: death2droid Date: Wed, 13 May 2009 21:23:18 +0000 Subject: [PATCH] Another small change to the re0 fix. Someone proposed this change and it looks as if it may work. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3219 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Plugin_DSP_HLE/Src/UCodes/UCode_AX.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX.cpp b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX.cpp index c6a4af8f4d..ce34b2c4b9 100644 --- a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX.cpp +++ b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX.cpp @@ -348,17 +348,23 @@ void CUCode_AX::MixAdd(short* _pBuffer, int _iSize) for (int j = 0; j < numupd; j++) { - const u16 updpar = Memory_Read_U16(updaddr + j); - const u16 upddata = Memory_Read_U16(updaddr + j + 2); + int k = 0; + if(g_Config.m_EnableRE0Fix) { - const u16 updpar = Memory_Read_U16(updaddr); - const u16 upddata = Memory_Read_U16(updaddr + 2); + k=j; } else { - // Do nothing for now - } + k=0; + } + + + const u16 updpar = Memory_Read_U16(updaddr + k); + const u16 upddata = Memory_Read_U16(updaddr + k + 2); + + + // some safety checks, I hope it's enough