IOS: Change devices to always return IPCCommandResult

This commit changes devices to always return IPCCommandResult rather
than just a return code for Open() and Close() in order to be able
to better emulate reply timing.

In hindsight, I should have considered we would want to emulate
timing when I cleaned up the device interface, but alas.
This rectifies that mistake.
This commit is contained in:
Léo Lam
2018-02-27 21:12:07 +01:00
parent 9282be1058
commit 80b1bf13c2
30 changed files with 68 additions and 79 deletions
+2 -2
View File
@@ -12,11 +12,11 @@ namespace HLE
{
namespace Device
{
ReturnCode Stub::Open(const OpenRequest& request)
IPCCommandResult Stub::Open(const OpenRequest& request)
{
WARN_LOG(IOS, "%s faking Open()", m_name.c_str());
m_is_active = true;
return IPC_SUCCESS;
return GetDefaultReply(IPC_SUCCESS);
}
IPCCommandResult Stub::IOCtl(const IOCtlRequest& request)