diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-04-29 10:08:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-29 10:08:34 +0200 |
commit | b50e1596cc2bf871478605c64674cfe544ffd43d (patch) | |
tree | d5aa480c8fe88dd1614d72bdb5a9a0a74fd3a631 | |
parent | Merge pull request #8280 from Tachi107/spdx-fixup (diff) | |
parent | service: hid: Stub IsFirmwareUpdateNeededForNotification (diff) | |
download | yuzu-b50e1596cc2bf871478605c64674cfe544ffd43d.tar yuzu-b50e1596cc2bf871478605c64674cfe544ffd43d.tar.gz yuzu-b50e1596cc2bf871478605c64674cfe544ffd43d.tar.bz2 yuzu-b50e1596cc2bf871478605c64674cfe544ffd43d.tar.lz yuzu-b50e1596cc2bf871478605c64674cfe544ffd43d.tar.xz yuzu-b50e1596cc2bf871478605c64674cfe544ffd43d.tar.zst yuzu-b50e1596cc2bf871478605c64674cfe544ffd43d.zip |
-rw-r--r-- | src/core/hle/service/hid/hid.cpp | 21 | ||||
-rw-r--r-- | src/core/hle/service/hid/hid.h | 1 |
2 files changed, 21 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index 36162ac97..eba44eda8 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp @@ -357,7 +357,7 @@ Hid::Hid(Core::System& system_) {1000, &Hid::SetNpadCommunicationMode, "SetNpadCommunicationMode"}, {1001, &Hid::GetNpadCommunicationMode, "GetNpadCommunicationMode"}, {1002, &Hid::SetTouchScreenConfiguration, "SetTouchScreenConfiguration"}, - {1003, nullptr, "IsFirmwareUpdateNeededForNotification"}, + {1003, &Hid::IsFirmwareUpdateNeededForNotification, "IsFirmwareUpdateNeededForNotification"}, {2000, nullptr, "ActivateDigitizer"}, }; // clang-format on @@ -1798,6 +1798,25 @@ void Hid::SetTouchScreenConfiguration(Kernel::HLERequestContext& ctx) { rb.Push(ResultSuccess); } +void Hid::IsFirmwareUpdateNeededForNotification(Kernel::HLERequestContext& ctx) { + IPC::RequestParser rp{ctx}; + struct Parameters { + s32 unknown; + INSERT_PADDING_WORDS_NOINIT(1); + u64 applet_resource_user_id; + }; + static_assert(sizeof(Parameters) == 0x10, "Parameters has incorrect size."); + + const auto parameters{rp.PopRaw<Parameters>()}; + + LOG_WARNING(Service_HID, "(STUBBED) called, unknown={}, applet_resource_user_id={}", + parameters.unknown, parameters.applet_resource_user_id); + + IPC::ResponseBuilder rb{ctx, 3}; + rb.Push(ResultSuccess); + rb.Push(false); +} + class HidDbg final : public ServiceFramework<HidDbg> { public: explicit HidDbg(Core::System& system_) : ServiceFramework{system_, "hid:dbg"} { diff --git a/src/core/hle/service/hid/hid.h b/src/core/hle/service/hid/hid.h index e61f8ed08..1be04c22b 100644 --- a/src/core/hle/service/hid/hid.h +++ b/src/core/hle/service/hid/hid.h @@ -166,6 +166,7 @@ private: void SetNpadCommunicationMode(Kernel::HLERequestContext& ctx); void GetNpadCommunicationMode(Kernel::HLERequestContext& ctx); void SetTouchScreenConfiguration(Kernel::HLERequestContext& ctx); + void IsFirmwareUpdateNeededForNotification(Kernel::HLERequestContext& ctx); std::shared_ptr<IAppletResource> applet_resource; |