diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE.cpp b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE.cpp index 7e2d3c0486..7c0d721a4f 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE.cpp +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE.cpp @@ -68,16 +68,6 @@ namespace WII_IPC_HLE_Interface { -enum ECommandType -{ - COMMAND_OPEN_DEVICE = 1, - COMMAND_CLOSE_DEVICE = 2, - COMMAND_READ = 3, - COMMAND_WRITE = 4, - COMMAND_SEEK = 5, - COMMAND_IOCTL = 6, - COMMAND_IOCTLV = 7, -}; typedef std::map TDeviceMap; TDeviceMap g_DeviceMap; @@ -432,7 +422,8 @@ void ExecuteCommand(u32 _Address) } else { - g_ReplyQueue.push(std::pair(_Address, "unknown")); + LOG(WII_IPC_HLE, "IOP: Reply to unknown device ID (DeviceID=%i)", DeviceID); + g_ReplyQueue.push(std::pair(_Address, "unknown")); } } } diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE.h b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE.h index a95102bab6..385472edc8 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE.h +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE.h @@ -33,6 +33,17 @@ void Update(); // Acknowledge command bool AckCommand(u32 _Address); +enum ECommandType +{ + COMMAND_OPEN_DEVICE = 1, + COMMAND_CLOSE_DEVICE = 2, + COMMAND_READ = 3, + COMMAND_WRITE = 4, + COMMAND_SEEK = 5, + COMMAND_IOCTL = 6, + COMMAND_IOCTLV = 7, +}; + } // end of namespace AudioInterface #endif