diff options
| author | 2022-04-26 22:22:27 -0500 | |
|---|---|---|
| committer | 2022-04-27 00:06:30 -0500 | |
| commit | 173d849b8f8cbcd50074a706172d12e493f1ed27 (patch) | |
| tree | c0b099eb2b2e61e1211b4f68c035444bd812f89b | |
| parent | Merge pull request #8262 from Morph1984/conan (diff) | |
| download | yuzu-173d849b8f8cbcd50074a706172d12e493f1ed27.tar.gz yuzu-173d849b8f8cbcd50074a706172d12e493f1ed27.tar.xz yuzu-173d849b8f8cbcd50074a706172d12e493f1ed27.zip | |
service: hid: Stub IsFirmwareUpdateNeededForNotification
Used in Fitness Boxing 2: Rhythm & Exercise (0100073011382000)
Diffstat (limited to '')
| -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 fb1ec52b2..a62365dc6 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp | |||
| @@ -362,7 +362,7 @@ Hid::Hid(Core::System& system_) | |||
| 362 | {1000, &Hid::SetNpadCommunicationMode, "SetNpadCommunicationMode"}, | 362 | {1000, &Hid::SetNpadCommunicationMode, "SetNpadCommunicationMode"}, |
| 363 | {1001, &Hid::GetNpadCommunicationMode, "GetNpadCommunicationMode"}, | 363 | {1001, &Hid::GetNpadCommunicationMode, "GetNpadCommunicationMode"}, |
| 364 | {1002, &Hid::SetTouchScreenConfiguration, "SetTouchScreenConfiguration"}, | 364 | {1002, &Hid::SetTouchScreenConfiguration, "SetTouchScreenConfiguration"}, |
| 365 | {1003, nullptr, "IsFirmwareUpdateNeededForNotification"}, | 365 | {1003, &Hid::IsFirmwareUpdateNeededForNotification, "IsFirmwareUpdateNeededForNotification"}, |
| 366 | {2000, nullptr, "ActivateDigitizer"}, | 366 | {2000, nullptr, "ActivateDigitizer"}, |
| 367 | }; | 367 | }; |
| 368 | // clang-format on | 368 | // clang-format on |
| @@ -1803,6 +1803,25 @@ void Hid::SetTouchScreenConfiguration(Kernel::HLERequestContext& ctx) { | |||
| 1803 | rb.Push(ResultSuccess); | 1803 | rb.Push(ResultSuccess); |
| 1804 | } | 1804 | } |
| 1805 | 1805 | ||
| 1806 | void Hid::IsFirmwareUpdateNeededForNotification(Kernel::HLERequestContext& ctx) { | ||
| 1807 | IPC::RequestParser rp{ctx}; | ||
| 1808 | struct Parameters { | ||
| 1809 | s32 unknown; | ||
| 1810 | INSERT_PADDING_WORDS_NOINIT(1); | ||
| 1811 | u64 applet_resource_user_id; | ||
| 1812 | }; | ||
| 1813 | static_assert(sizeof(Parameters) == 0x10, "Parameters has incorrect size."); | ||
| 1814 | |||
| 1815 | const auto parameters{rp.PopRaw<Parameters>()}; | ||
| 1816 | |||
| 1817 | LOG_WARNING(Service_HID, "(STUBBED) called, unknown={}, applet_resource_user_id={}", | ||
| 1818 | parameters.unknown, parameters.applet_resource_user_id); | ||
| 1819 | |||
| 1820 | IPC::ResponseBuilder rb{ctx, 3}; | ||
| 1821 | rb.Push(ResultSuccess); | ||
| 1822 | rb.Push(false); | ||
| 1823 | } | ||
| 1824 | |||
| 1806 | class HidDbg final : public ServiceFramework<HidDbg> { | 1825 | class HidDbg final : public ServiceFramework<HidDbg> { |
| 1807 | public: | 1826 | public: |
| 1808 | explicit HidDbg(Core::System& system_) : ServiceFramework{system_, "hid:dbg"} { | 1827 | 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 95778e673..526379030 100644 --- a/src/core/hle/service/hid/hid.h +++ b/src/core/hle/service/hid/hid.h | |||
| @@ -165,6 +165,7 @@ private: | |||
| 165 | void SetNpadCommunicationMode(Kernel::HLERequestContext& ctx); | 165 | void SetNpadCommunicationMode(Kernel::HLERequestContext& ctx); |
| 166 | void GetNpadCommunicationMode(Kernel::HLERequestContext& ctx); | 166 | void GetNpadCommunicationMode(Kernel::HLERequestContext& ctx); |
| 167 | void SetTouchScreenConfiguration(Kernel::HLERequestContext& ctx); | 167 | void SetTouchScreenConfiguration(Kernel::HLERequestContext& ctx); |
| 168 | void IsFirmwareUpdateNeededForNotification(Kernel::HLERequestContext& ctx); | ||
| 168 | 169 | ||
| 169 | std::shared_ptr<IAppletResource> applet_resource; | 170 | std::shared_ptr<IAppletResource> applet_resource; |
| 170 | 171 | ||