summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-01-19 23:31:15 +0100
committerGitHub <noreply@github.com>2022-01-19 23:31:15 +0100
commitdc471700ca900e724c33ba56547a9e9592291e16 (patch)
tree78d5c9b5435f7d1629095856deded0602ad30d23 /src/core
parentMerge pull request #7747 from DadSchoorse/fix-anv-64bit-atomic-stype (diff)
parentservice/hid: Initialize applet_resource on SetNpadAnalogStickUseCenterClamp (diff)
downloadyuzu-dc471700ca900e724c33ba56547a9e9592291e16.tar
yuzu-dc471700ca900e724c33ba56547a9e9592291e16.tar.gz
yuzu-dc471700ca900e724c33ba56547a9e9592291e16.tar.bz2
yuzu-dc471700ca900e724c33ba56547a9e9592291e16.tar.lz
yuzu-dc471700ca900e724c33ba56547a9e9592291e16.tar.xz
yuzu-dc471700ca900e724c33ba56547a9e9592291e16.tar.zst
yuzu-dc471700ca900e724c33ba56547a9e9592291e16.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/hid/hid.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index 84da38b3b..a2bf7defb 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -1176,7 +1176,8 @@ void Hid::SetNpadAnalogStickUseCenterClamp(Kernel::HLERequestContext& ctx) {
const auto parameters{rp.PopRaw<Parameters>()};
- applet_resource->GetController<Controller_NPad>(HidController::NPad)
+ GetAppletResource()
+ ->GetController<Controller_NPad>(HidController::NPad)
.SetAnalogStickUseCenterClamp(parameters.analog_stick_use_center_clamp);
LOG_WARNING(Service_HID,