summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-24 23:36:55 +0200
committerGitHub <noreply@github.com>2018-10-24 23:36:55 +0200
commitce2403d97580d5c77ab1826094636a0626977fc5 (patch)
treeec155e7ab7c680331f9c473aac7e4f8c671e0f87 /src/core
parentMerge pull request #1568 from lioncash/dir (diff)
parentnpad: Remove unused controller variable from OnInit() (diff)
downloadyuzu-ce2403d97580d5c77ab1826094636a0626977fc5.tar
yuzu-ce2403d97580d5c77ab1826094636a0626977fc5.tar.gz
yuzu-ce2403d97580d5c77ab1826094636a0626977fc5.tar.bz2
yuzu-ce2403d97580d5c77ab1826094636a0626977fc5.tar.lz
yuzu-ce2403d97580d5c77ab1826094636a0626977fc5.tar.xz
yuzu-ce2403d97580d5c77ab1826094636a0626977fc5.tar.zst
yuzu-ce2403d97580d5c77ab1826094636a0626977fc5.zip
Diffstat (limited to 'src/core')
-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);