print device id on open

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1385 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee
2008-12-03 19:36:47 +00:00
parent eecbfa3445
commit c16732a012

View File

@ -287,8 +287,8 @@ void ExecuteCommand(u32 _Address)
} }
else else
{ {
LOG(WII_IPC_HLE, "IOP: Open (Device=%s, Mode=%i)", LOG(WII_IPC_HLE, "IOP: Open (Device=%s, DeviceID=%08x, Mode=%i)",
pDevice->GetDeviceName().c_str(), Mode); pDevice->GetDeviceName().c_str(), CurrentDeviceID, Mode);
} }
} }
else else
@ -408,7 +408,7 @@ void ExecuteCommand(u32 _Address)
if (GenerateReply) if (GenerateReply)
{ {
// Get device id // Get device id
u32 DeviceID = Memory::Read_U32(_Address + 8); u32 DeviceID = Memory::Read_U32(_Address + 8);
IWII_IPC_HLE_Device* pDevice = NULL; IWII_IPC_HLE_Device* pDevice = NULL;
// Get the device from the device map // Get the device from the device map