diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-02-08 16:09:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-08 16:09:26 +0100 |
commit | f6477b91f9abe4ad4b4101f9f80ddb3412462a5d (patch) | |
tree | f7fcacd7425bc75629ae8dffc7df708d54d4adb0 /src/core/hle/service/hid/hid.cpp | |
parent | Merge pull request #9739 from liamwhite/old-gcc-fix (diff) | |
parent | service: hid: Return error if arguments of SetSupportedNpadIdType is invalid (diff) | |
download | yuzu-f6477b91f9abe4ad4b4101f9f80ddb3412462a5d.tar yuzu-f6477b91f9abe4ad4b4101f9f80ddb3412462a5d.tar.gz yuzu-f6477b91f9abe4ad4b4101f9f80ddb3412462a5d.tar.bz2 yuzu-f6477b91f9abe4ad4b4101f9f80ddb3412462a5d.tar.lz yuzu-f6477b91f9abe4ad4b4101f9f80ddb3412462a5d.tar.xz yuzu-f6477b91f9abe4ad4b4101f9f80ddb3412462a5d.tar.zst yuzu-f6477b91f9abe4ad4b4101f9f80ddb3412462a5d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/hid/hid.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index f15f1a6bb..ac2c0c76d 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp @@ -1025,13 +1025,13 @@ void Hid::SetSupportedNpadIdType(Kernel::HLERequestContext& ctx) { IPC::RequestParser rp{ctx}; const auto applet_resource_user_id{rp.Pop<u64>()}; - applet_resource->GetController<Controller_NPad>(HidController::NPad) - .SetSupportedNpadIdTypes(ctx.ReadBuffer()); + const auto result = applet_resource->GetController<Controller_NPad>(HidController::NPad) + .SetSupportedNpadIdTypes(ctx.ReadBuffer()); LOG_DEBUG(Service_HID, "called, applet_resource_user_id={}", applet_resource_user_id); IPC::ResponseBuilder rb{ctx, 2}; - rb.Push(ResultSuccess); + rb.Push(result); } void Hid::ActivateNpad(Kernel::HLERequestContext& ctx) { |