diff options
| author | 2018-10-24 17:36:55 -0400 | |
|---|---|---|
| committer | 2018-10-24 17:36:55 -0400 | |
| commit | ce2403d97580d5c77ab1826094636a0626977fc5 (patch) | |
| tree | ec155e7ab7c680331f9c473aac7e4f8c671e0f87 | |
| parent | Merge pull request #1568 from lioncash/dir (diff) | |
| parent | npad: Remove unused controller variable from OnInit() (diff) | |
| download | yuzu-ce2403d97580d5c77ab1826094636a0626977fc5.tar.gz yuzu-ce2403d97580d5c77ab1826094636a0626977fc5.tar.xz yuzu-ce2403d97580d5c77ab1826094636a0626977fc5.zip | |
Merge pull request #1564 from lioncash/npad
npad: Remove unused controller variable from OnInit()
Diffstat (limited to '')
| -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() { | |||
| 108 | styleset_changed_event = | 108 | styleset_changed_event = |
| 109 | Kernel::Event::Create(kernel, Kernel::ResetType::OneShot, "npad:NpadStyleSetChanged"); | 109 | Kernel::Event::Create(kernel, Kernel::ResetType::OneShot, "npad:NpadStyleSetChanged"); |
| 110 | 110 | ||
| 111 | if (!IsControllerActivated()) | 111 | if (!IsControllerActivated()) { |
| 112 | return; | 112 | return; |
| 113 | std::size_t controller{}; | 113 | } |
| 114 | |||
| 114 | if (style.raw == 0) { | 115 | if (style.raw == 0) { |
| 115 | // We want to support all controllers | 116 | // We want to support all controllers |
| 116 | style.handheld.Assign(1); | 117 | style.handheld.Assign(1); |