summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-05-28 19:05:20 +0200
committerGitHub <noreply@github.com>2021-05-28 19:05:20 +0200
commit945effcc752de093c999611c63b823970605a678 (patch)
tree2b4d75261d65fe7f3d90545f3eec4e77f1fc8d4b /src
parentMerge pull request #6375 from lioncash/iofs (diff)
parenthid: ApplyNpadSystemCommonPolicy (diff)
downloadyuzu-945effcc752de093c999611c63b823970605a678.tar
yuzu-945effcc752de093c999611c63b823970605a678.tar.gz
yuzu-945effcc752de093c999611c63b823970605a678.tar.bz2
yuzu-945effcc752de093c999611c63b823970605a678.tar.lz
yuzu-945effcc752de093c999611c63b823970605a678.tar.xz
yuzu-945effcc752de093c999611c63b823970605a678.tar.zst
yuzu-945effcc752de093c999611c63b823970605a678.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/hid/hid.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index 49c17fd14..df0fe1c8e 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -1770,7 +1770,7 @@ public:
{232, nullptr, "GetIrSensorState"},
{233, nullptr, "GetXcdHandleForNpadWithIrSensor"},
{301, nullptr, "ActivateNpadSystem"},
- {303, nullptr, "ApplyNpadSystemCommonPolicy"},
+ {303, &HidSys::ApplyNpadSystemCommonPolicy, "ApplyNpadSystemCommonPolicy"},
{304, nullptr, "EnableAssigningSingleOnSlSrPress"},
{305, nullptr, "DisableAssigningSingleOnSlSrPress"},
{306, nullptr, "GetLastActiveNpad"},
@@ -1949,6 +1949,15 @@ public:
RegisterHandlers(functions);
}
+
+private:
+ void ApplyNpadSystemCommonPolicy(Kernel::HLERequestContext& ctx) {
+ // We already do this for homebrew so we can just stub it out
+ LOG_WARNING(Service_HID, "called");
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+ }
};
class HidTmp final : public ServiceFramework<HidTmp> {