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
This commit is contained in:
Shawn Hoffman 2009-08-17 05:20:05 +00:00
parent 45feea42c2
commit fea2aa344d
2 changed files with 4 additions and 8 deletions

View File

@ -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);

View File

@ -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");
}