diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-10-24 00:37:36 -0400 | 
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-10-24 00:38:03 -0400 | 
| commit | 93596d03ec56921b19a04ae7ac4fde6a178cab04 (patch) | |
| tree | de3f126ff9132ba4c337bc1f710e6577163c85a8 /src/core | |
| parent | a94e5d9e68619a90c9171a5198162bc74fb88f22 (diff) | |
npad: Remove unused controller variable from OnInit()
This also gets rid of variable shadowing related to the lambda parameter
a little bit below this code as well.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/hid/controllers/npad.cpp | 5 | 
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);  | 
