mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
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:
parent
0e961776e6
commit
5add8c23ee
@ -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())
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user