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