diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-01-19 23:31:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-19 23:31:15 +0100 |
commit | dc471700ca900e724c33ba56547a9e9592291e16 (patch) | |
tree | 78d5c9b5435f7d1629095856deded0602ad30d23 /src/core | |
parent | Merge pull request #7747 from DadSchoorse/fix-anv-64bit-atomic-stype (diff) | |
parent | service/hid: Initialize applet_resource on SetNpadAnalogStickUseCenterClamp (diff) | |
download | yuzu-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.cpp | 3 |
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, |