diff options
author | bunnei <bunneidev@gmail.com> | 2020-10-27 02:49:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 02:49:26 +0100 |
commit | 9f08cea2c41cf3ee00c899ee333893cecbba3ae9 (patch) | |
tree | 358896744bc49e77e84ad6f0875d644df0574c27 /src/core | |
parent | Merge pull request #4827 from lioncash/trunc (diff) | |
parent | controller: Pass ControllerParameters by reference in ReconfigureControllers() (diff) | |
download | yuzu-9f08cea2c41cf3ee00c899ee333893cecbba3ae9.tar yuzu-9f08cea2c41cf3ee00c899ee333893cecbba3ae9.tar.gz yuzu-9f08cea2c41cf3ee00c899ee333893cecbba3ae9.tar.bz2 yuzu-9f08cea2c41cf3ee00c899ee333893cecbba3ae9.tar.lz yuzu-9f08cea2c41cf3ee00c899ee333893cecbba3ae9.tar.xz yuzu-9f08cea2c41cf3ee00c899ee333893cecbba3ae9.tar.zst yuzu-9f08cea2c41cf3ee00c899ee333893cecbba3ae9.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/frontend/applets/controller.cpp | 2 | ||||
-rw-r--r-- | src/core/frontend/applets/controller.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/frontend/applets/controller.cpp b/src/core/frontend/applets/controller.cpp index c5d65f2d0..5582091f4 100644 --- a/src/core/frontend/applets/controller.cpp +++ b/src/core/frontend/applets/controller.cpp @@ -19,7 +19,7 @@ DefaultControllerApplet::DefaultControllerApplet(Service::SM::ServiceManager& se DefaultControllerApplet::~DefaultControllerApplet() = default; void DefaultControllerApplet::ReconfigureControllers(std::function<void()> callback, - ControllerParameters parameters) const { + const ControllerParameters& parameters) const { LOG_INFO(Service_HID, "called, deducing the best configuration based on the given parameters!"); auto& npad = diff --git a/src/core/frontend/applets/controller.h b/src/core/frontend/applets/controller.h index 3e49cdbb9..dff71d8d9 100644 --- a/src/core/frontend/applets/controller.h +++ b/src/core/frontend/applets/controller.h @@ -38,7 +38,7 @@ public: virtual ~ControllerApplet(); virtual void ReconfigureControllers(std::function<void()> callback, - ControllerParameters parameters) const = 0; + const ControllerParameters& parameters) const = 0; }; class DefaultControllerApplet final : public ControllerApplet { @@ -47,7 +47,7 @@ public: ~DefaultControllerApplet() override; void ReconfigureControllers(std::function<void()> callback, - ControllerParameters parameters) const override; + const ControllerParameters& parameters) const override; private: Service::SM::ServiceManager& service_manager; |