summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2009-08-17 05:20:05 +0000
committerShawn Hoffman <godisgovernment@gmail.com>2009-08-17 05:20:05 +0000
commitfea2aa344dd957cf8324898bc4beb55ecb3b33ee (patch)
tree545fb7f61bcdf83c6222ebe5a6961ae314923e3c /Source
parent45feea42c2fa1b95f2b40ddc6c3314c0fe8318f9 (diff)
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
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device.h8
-rw-r--r--Source/DSPSpy/main_spy.cpp4
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");
}