From e1699988a6150c48af0033163524abfd368bfab9 Mon Sep 17 00:00:00 2001 From: death2droid Date: Wed, 13 May 2009 21:20:19 +0000 Subject: [PATCH] Small change to re0 fix trying to get it to work properly! git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3218 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Plugin_DSP_HLE/Src/UCodes/UCode_AX.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 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 d55c85d561..c6a4af8f4d 100644 --- a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX.cpp +++ b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX.cpp @@ -344,21 +344,20 @@ void CUCode_AX::MixAdd(short* _pBuffer, int _iSize) int numupd = upd0 + upd1 + upd2 + upd3 + upd4; if(numupd > 64) numupd = 64; // prevent crazy values const u32 updaddr = (u32)(upd_hi << 16) | upd_lo; - const u16 updpar = 0; - const u16 upddata = 0; int on = false, off = false; for (int j = 0; j < numupd; j++) - { - if(!g_Config.m_EnableRE0Fix) - { - const u16 updpar = Memory_Read_U16(updaddr + j); - const u16 upddata = Memory_Read_U16(updaddr + j + 2); - } - else + { + const u16 updpar = Memory_Read_U16(updaddr + j); + const u16 upddata = Memory_Read_U16(updaddr + j + 2); + if(g_Config.m_EnableRE0Fix) { const u16 updpar = Memory_Read_U16(updaddr); const u16 upddata = Memory_Read_U16(updaddr + 2); + } + else + { + // Do nothing for now }