Lambda. Billiard. Tree. Forest. Spaaaaaaccccceeeee.

This commit is contained in:
Matthew Parlane 2013-02-01 18:55:27 +13:00
parent 33b0a11747
commit f43567e2b3
2 changed files with 7 additions and 7 deletions

View File

@ -515,14 +515,14 @@ void ExecuteCommand(u32 _Address)
}
}
// It seems that the original hardware overwrites the command after it has been
// executed. We write 8 which is not any valid command, and what IOS does
Memory::Write_U32(8, _Address);
// IOS seems to write back the command that was responded to
Memory::Write_U32(Command, _Address + 8);
if (CmdSuccess)
{
// It seems that the original hardware overwrites the command after it has been
// executed. We write 8 which is not any valid command, and what IOS does
Memory::Write_U32(8, _Address);
// IOS seems to write back the command that was responded to
Memory::Write_U32(Command, _Address + 8);
// Generate a reply to the IPC command
EnqReply(_Address);
}

View File

@ -732,7 +732,7 @@ bool CWII_IPC_HLE_Device_net_ip_top::IOCtl(u32 CommandAddress)
std::unique_lock<std::mutex> lk(socketMapMutex);
_tSocket* sock = new _tSocket();
socketMap[s] = sock;
sock->thread = new std::thread(&CWII_IPC_HLE_Device_net_ip_top::socketProcessor, this, s);
sock->thread = new std::thread([this, s]{this->socketProcessor(s);});
}
break;