diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2024-01-23 06:30:34 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2024-01-26 00:14:18 +0100 |
commit | 53b321c945d7e6782a6011b7ee55035da8f54dbc (patch) | |
tree | ab538a4d934f71453bd4b16a929599ae5f525668 /src/hid_core/resources/hid_firmware_settings.cpp | |
parent | Merge pull request #12759 from liamwhite/mp-misc (diff) | |
download | yuzu-53b321c945d7e6782a6011b7ee55035da8f54dbc.tar yuzu-53b321c945d7e6782a6011b7ee55035da8f54dbc.tar.gz yuzu-53b321c945d7e6782a6011b7ee55035da8f54dbc.tar.bz2 yuzu-53b321c945d7e6782a6011b7ee55035da8f54dbc.tar.lz yuzu-53b321c945d7e6782a6011b7ee55035da8f54dbc.tar.xz yuzu-53b321c945d7e6782a6011b7ee55035da8f54dbc.tar.zst yuzu-53b321c945d7e6782a6011b7ee55035da8f54dbc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/hid_core/resources/hid_firmware_settings.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/hid_core/resources/hid_firmware_settings.cpp b/src/hid_core/resources/hid_firmware_settings.cpp index 00ceff7e6..9c9019e8f 100644 --- a/src/hid_core/resources/hid_firmware_settings.cpp +++ b/src/hid_core/resources/hid_firmware_settings.cpp @@ -40,6 +40,13 @@ void HidFirmwareSettings::LoadSettings(bool reload_config) { m_set_sys->GetSettingsItemValue<bool>(is_touch_firmware_auto_update_disabled, "hid_debug", "touch_firmware_auto_update_disabled"); + bool has_rail_interface{}; + bool has_sio_mcu{}; + m_set_sys->GetSettingsItemValue<bool>(has_rail_interface, "hid", "has_rail_interface"); + m_set_sys->GetSettingsItemValue<bool>(has_sio_mcu, "hid", "has_sio_mcu"); + platform_config.has_rail_interface.Assign(has_rail_interface); + platform_config.has_sio_mcu.Assign(has_sio_mcu); + is_initialized = true; } @@ -103,4 +110,9 @@ HidFirmwareSettings::FeaturesPerId HidFirmwareSettings::FeaturesDisabledPerId() return features_per_id_disabled; } +Set::PlatformConfig HidFirmwareSettings::GetPlatformConfig() { + LoadSettings(false); + return platform_config; +} + } // namespace Service::HID |