summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/hle/service/glue/arp.cpp10
-rw-r--r--src/core/hle/service/hid/controllers/npad.cpp2
-rw-r--r--src/core/hle/service/hid/controllers/npad.h1
3 files changed, 6 insertions, 7 deletions
diff --git a/src/core/hle/service/glue/arp.cpp b/src/core/hle/service/glue/arp.cpp
index 322125135..7b1c6677c 100644
--- a/src/core/hle/service/glue/arp.cpp
+++ b/src/core/hle/service/glue/arp.cpp
@@ -157,9 +157,9 @@ class IRegistrar final : public ServiceFramework<IRegistrar> {
157 friend class ARP_W; 157 friend class ARP_W;
158 158
159public: 159public:
160 explicit IRegistrar( 160 using IssuerFn = std::function<ResultCode(u64, ApplicationLaunchProperty, std::vector<u8>)>;
161 Core::System& system_, 161
162 std::function<ResultCode(u64, ApplicationLaunchProperty, std::vector<u8>)> issuer) 162 explicit IRegistrar(Core::System& system_, IssuerFn&& issuer)
163 : ServiceFramework{system_, "IRegistrar"}, issue_process_id{std::move(issuer)} { 163 : ServiceFramework{system_, "IRegistrar"}, issue_process_id{std::move(issuer)} {
164 // clang-format off 164 // clang-format off
165 static const FunctionInfo functions[] = { 165 static const FunctionInfo functions[] = {
@@ -238,9 +238,9 @@ private:
238 rb.Push(RESULT_SUCCESS); 238 rb.Push(RESULT_SUCCESS);
239 } 239 }
240 240
241 std::function<ResultCode(u64, ApplicationLaunchProperty, std::vector<u8>)> issue_process_id; 241 IssuerFn issue_process_id;
242 bool issued = false; 242 bool issued = false;
243 ApplicationLaunchProperty launch; 243 ApplicationLaunchProperty launch{};
244 std::vector<u8> control; 244 std::vector<u8> control;
245}; 245};
246 246
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp
index 783386fcf..113a41254 100644
--- a/src/core/hle/service/hid/controllers/npad.cpp
+++ b/src/core/hle/service/hid/controllers/npad.cpp
@@ -147,7 +147,7 @@ bool Controller_NPad::IsDeviceHandleValid(const DeviceHandle& device_handle) {
147 device_handle.device_index < DeviceIndex::MaxDeviceIndex; 147 device_handle.device_index < DeviceIndex::MaxDeviceIndex;
148} 148}
149 149
150Controller_NPad::Controller_NPad(Core::System& system) : ControllerBase(system), system(system) { 150Controller_NPad::Controller_NPad(Core::System& system) : ControllerBase(system) {
151 latest_vibration_values.fill({DEFAULT_VIBRATION_VALUE, DEFAULT_VIBRATION_VALUE}); 151 latest_vibration_values.fill({DEFAULT_VIBRATION_VALUE, DEFAULT_VIBRATION_VALUE});
152} 152}
153 153
diff --git a/src/core/hle/service/hid/controllers/npad.h b/src/core/hle/service/hid/controllers/npad.h
index 14d0ac067..c3b07bd41 100644
--- a/src/core/hle/service/hid/controllers/npad.h
+++ b/src/core/hle/service/hid/controllers/npad.h
@@ -587,6 +587,5 @@ private:
587 std::array<ControllerPad, 10> npad_pad_states{}; 587 std::array<ControllerPad, 10> npad_pad_states{};
588 std::array<TriggerState, 10> npad_trigger_states{}; 588 std::array<TriggerState, 10> npad_trigger_states{};
589 bool is_in_lr_assignment_mode{false}; 589 bool is_in_lr_assignment_mode{false};
590 Core::System& system;
591}; 590};
592} // namespace Service::HID 591} // namespace Service::HID