summaryrefslogtreecommitdiffstats
path: root/src/hid_core/resources/hid_firmware_settings.h
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2024-01-15 04:04:02 +0100
committergerman77 <juangerman-13@hotmail.com>2024-01-16 06:17:03 +0100
commit7f5adf8982e12b0629b6c3a90b2b783209ef09cc (patch)
tree3d93f74edd8d3a23311e8b240c4e26cfb26a2b17 /src/hid_core/resources/hid_firmware_settings.h
parentservice: set: Refractor setting service (diff)
downloadyuzu-7f5adf8982e12b0629b6c3a90b2b783209ef09cc.tar
yuzu-7f5adf8982e12b0629b6c3a90b2b783209ef09cc.tar.gz
yuzu-7f5adf8982e12b0629b6c3a90b2b783209ef09cc.tar.bz2
yuzu-7f5adf8982e12b0629b6c3a90b2b783209ef09cc.tar.lz
yuzu-7f5adf8982e12b0629b6c3a90b2b783209ef09cc.tar.xz
yuzu-7f5adf8982e12b0629b6c3a90b2b783209ef09cc.tar.zst
yuzu-7f5adf8982e12b0629b6c3a90b2b783209ef09cc.zip
Diffstat (limited to '')
-rw-r--r--src/hid_core/resources/hid_firmware_settings.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/hid_core/resources/hid_firmware_settings.h b/src/hid_core/resources/hid_firmware_settings.h
index 00201fd94..3694fa9a3 100644
--- a/src/hid_core/resources/hid_firmware_settings.h
+++ b/src/hid_core/resources/hid_firmware_settings.h
@@ -5,6 +5,14 @@
#include "common/common_types.h"
+namespace Core {
+class System;
+}
+
+namespace Service::Set {
+class ISystemSettingsServer;
+}
+
namespace Service::HID {
/// Loads firmware config from nn::settings::fwdbg
@@ -13,7 +21,7 @@ public:
using FirmwareSetting = std::array<u8, 4>;
using FeaturesPerId = std::array<bool, 0xA8>;
- HidFirmwareSettings();
+ HidFirmwareSettings(Core::System& system);
void Reload();
void LoadSettings(bool reload_config);
@@ -49,6 +57,8 @@ private:
bool is_touch_firmware_auto_update_disabled{};
FirmwareSetting is_firmware_update_failure{};
FeaturesPerId features_per_id_disabled{};
+
+ std::shared_ptr<Service::Set::ISystemSettingsServer> m_set_sys;
};
} // namespace Service::HID