IOS/USB_KBD: Re-add the Write stub handler

This is something I removed by mistake. It didn't break anything in
most titles, but the Mii Channel *requires* write requests to
/dev/usb/kbd to succeed before exiting, so this commit readds the stub.
This commit is contained in:
Léo Lam 2017-02-12 15:55:33 +01:00
parent 0e961776e6
commit 5add8c23ee
2 changed files with 7 additions and 0 deletions

View File

@ -62,6 +62,12 @@ ReturnCode USB_KBD::Open(const OpenRequest& request)
return IPC_SUCCESS;
}
IPCCommandResult USB_KBD::Write(const ReadWriteRequest& request)
{
// Stubbed.
return GetDefaultReply(IPC_SUCCESS);
}
IPCCommandResult USB_KBD::IOCtl(const IOCtlRequest& request)
{
if (SConfig::GetInstance().m_WiiKeyboard && !Core::g_want_determinism && !m_MessageQueue.empty())

View File

@ -23,6 +23,7 @@ public:
USB_KBD(u32 device_id, const std::string& device_name);
ReturnCode Open(const OpenRequest& request) override;
IPCCommandResult Write(const ReadWriteRequest& request) override;
IPCCommandResult IOCtl(const IOCtlRequest& request) override;
void Update() override;