From a6dbb1b6dfecb79d94f6e101bd0572bbf8e98b49 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Sun, 11 Oct 2009 22:47:21 +0000 Subject: [PATCH] fix typos in /dev/di...note the comment, on real hw i'm pretty sure there is a 0x4 flag set...things running in dolphin don't like this, though git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4405 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_DI.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_DI.cpp b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_DI.cpp index 2eca576e59..32e8282cfe 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_DI.cpp +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_DI.cpp @@ -32,8 +32,8 @@ using namespace DVDInterface; -#define DI_COVER_REG_INITIALIZED 0x40 -#define DI_COVER_REG_NO_DISC 0x01 +#define DI_COVER_REG_INITIALIZED 0 // Should be 4, but doesn't work correctly... +#define DI_COVER_REG_NO_DISC 1 CWII_IPC_HLE_Device_di::CWII_IPC_HLE_Device_di(u32 _DeviceID, const std::string& _rDeviceName ) : IWII_IPC_HLE_Device(_DeviceID, _rDeviceName) @@ -166,10 +166,10 @@ u32 CWII_IPC_HLE_Device_di::ExecuteCommand(u32 _BufferIn, u32 _BufferInSize, u32 { // (shuffle2) Taken from my wii Memory::Write_U32(0x00000002, _BufferOut); - Memory::Write_U32(0x20060526, _BufferOut); + Memory::Write_U32(0x20060526, _BufferOut + 4); // This was in the oubuf even though this cmd is only supposed to reply with 64bits // However, this and other tests strongly suggest that the buffer is static, and it's never - or rarely cleared. - Memory::Write_U32(0x41000000, _BufferOut); + Memory::Write_U32(0x41000000, _BufferOut + 8); INFO_LOG(WII_IPC_DVD, "DVDLowInquiry (Buffer 0x%08x, 0x%x)", _BufferOut, _BufferOutSize);