From 0176879e4545b078fce9c976a4135b6c1e121aa5 Mon Sep 17 00:00:00 2001 From: luigi2us Date: Thu, 17 Dec 2009 19:45:13 +0000 Subject: [PATCH] IPC: let's try that: when reopening a device, return the device's ID, rather than an error code. MKWii can now be played even if you don't have a save file, but it will fail to save and tell the file is corrupted each time you'll launch it. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4706 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 5b7044e4b8..3b12a67dc5 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE.cpp +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE.cpp @@ -328,7 +328,7 @@ void ExecuteCommand(u32 _Address) { // We have already opened this device, return -6 if(pDevice->IsOpened()) - Memory::Write_U32(u32(-6), _Address + 4); + Memory::Write_U32(/*u32(-6)*/DeviceID, _Address + 4); else pDevice->Open(_Address, Mode); }