From 5add8c23ee4ef49bcf7d99a5cec1848a2adc3064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 12 Feb 2017 15:55:33 +0100 Subject: [PATCH] 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. --- Source/Core/Core/IOS/USB/USB_KBD.cpp | 6 ++++++ Source/Core/Core/IOS/USB/USB_KBD.h | 1 + 2 files changed, 7 insertions(+) diff --git a/Source/Core/Core/IOS/USB/USB_KBD.cpp b/Source/Core/Core/IOS/USB/USB_KBD.cpp index 926681aa0f..5baa6717e4 100644 --- a/Source/Core/Core/IOS/USB/USB_KBD.cpp +++ b/Source/Core/Core/IOS/USB/USB_KBD.cpp @@ -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()) diff --git a/Source/Core/Core/IOS/USB/USB_KBD.h b/Source/Core/Core/IOS/USB/USB_KBD.h index 9aec010637..39cab243da 100644 --- a/Source/Core/Core/IOS/USB/USB_KBD.h +++ b/Source/Core/Core/IOS/USB/USB_KBD.h @@ -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;