From fea2aa344dd957cf8324898bc4beb55ecb3b33ee Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Mon, 17 Aug 2009 05:20:05 +0000 Subject: [PATCH] fix wiimote in homebrew, thanks to vorte[x]! :D git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4012 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device.h | 8 +++----- Source/DSPSpy/main_spy.cpp | 4 +--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device.h b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device.h index 139ec2b9ad..8a9db90739 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device.h +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device.h @@ -86,10 +86,8 @@ protected: SBuffer Buffer; Buffer.m_Address = Memory::Read_U32(BufferVectorOffset); - /* Restore cached address, mauled by emulatee's ioctl functions. Why? - What is the purpose of this? After we have read the values, why would - anyone ned it */ - //Memory::Write_U32(Buffer.m_Address | 0x80000000, BufferVectorOffset); + // Restore cached address, mauled by emulator's ioctl functions. + Memory::Write_U32(Buffer.m_Address | 0x80000000, BufferVectorOffset); BufferVectorOffset += 4; Buffer.m_Size = Memory::Read_U32(BufferVectorOffset); @@ -105,7 +103,7 @@ protected: SBuffer Buffer; Buffer.m_Address = Memory::Read_U32(BufferVectorOffset); - //Memory::Write_U32(Buffer.m_Address | 0x80000000, BufferVectorOffset); + Memory::Write_U32(Buffer.m_Address | 0x80000000, BufferVectorOffset); BufferVectorOffset += 4; Buffer.m_Size = Memory::Read_U32(BufferVectorOffset); diff --git a/Source/DSPSpy/main_spy.cpp b/Source/DSPSpy/main_spy.cpp index 541081bb77..75a0906a88 100644 --- a/Source/DSPSpy/main_spy.cpp +++ b/Source/DSPSpy/main_spy.cpp @@ -103,8 +103,6 @@ u16 dspreg_in[32] = { u16 dspreg_out[1000][32]; -u32 padding[1024]; - // UI (interactive register editing) u32 ui_mode; @@ -223,7 +221,7 @@ void DumpDSP_ROMs(const u16* rom, const u16* coef) fwrite(MEM_PHYSICAL_TO_K0(rom), 0x2000, 1, fROM); fclose(fROM); - fwrite(MEM_PHYSICAL_TO_K0(coef), 0x1000, 1, fCOEF); + fwrite(MEM_PHYSICAL_TO_K0(coef), 0x2000, 1, fCOEF); fclose(fCOEF); UpdateLastMessage("DSP ROMs dumped to SD"); }