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
This commit is contained in:
luigi2us 2009-12-17 19:45:13 +00:00
parent bb81ea26ca
commit 0176879e45
1 changed files with 1 additions and 1 deletions

View File

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