summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-10-24 06:37:36 +0200
committerLioncash <mathew1800@gmail.com>2018-10-24 06:38:03 +0200
commit93596d03ec56921b19a04ae7ac4fde6a178cab04 (patch)
treede3f126ff9132ba4c337bc1f710e6577163c85a8 /src/core/hle/service
parentMerge pull request #1551 from ogniK5377/improved-svcbreak (diff)
downloadyuzu-93596d03ec56921b19a04ae7ac4fde6a178cab04.tar
yuzu-93596d03ec56921b19a04ae7ac4fde6a178cab04.tar.gz
yuzu-93596d03ec56921b19a04ae7ac4fde6a178cab04.tar.bz2
yuzu-93596d03ec56921b19a04ae7ac4fde6a178cab04.tar.lz
yuzu-93596d03ec56921b19a04ae7ac4fde6a178cab04.tar.xz
yuzu-93596d03ec56921b19a04ae7ac4fde6a178cab04.tar.zst
yuzu-93596d03ec56921b19a04ae7ac4fde6a178cab04.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/hid/controllers/npad.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp
index b06e65a77..4b4d1324f 100644
--- a/src/core/hle/service/hid/controllers/npad.cpp
+++ b/src/core/hle/service/hid/controllers/npad.cpp
@@ -108,9 +108,10 @@ void Controller_NPad::OnInit() {
styleset_changed_event =
Kernel::Event::Create(kernel, Kernel::ResetType::OneShot, "npad:NpadStyleSetChanged");
- if (!IsControllerActivated())
+ if (!IsControllerActivated()) {
return;
- std::size_t controller{};
+ }
+
if (style.raw == 0) {
// We want to support all controllers
style.handheld.Assign(1);