From b9fffa2e66025e7f4b3f8a4ff4e6c71a171452f8 Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Fri, 11 Nov 2022 20:44:30 -0500 Subject: Android: Add theme mode switcher Similar to app themes, theme modes have to be loaded before directory initialization is ready. So we save the proper key the same way. --- Source/Core/Core/ConfigLoaders/IsSettingSaveable.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Source/Core') diff --git a/Source/Core/Core/ConfigLoaders/IsSettingSaveable.cpp b/Source/Core/Core/ConfigLoaders/IsSettingSaveable.cpp index bd7f28fe3c..9c50002204 100644 --- a/Source/Core/Core/ConfigLoaders/IsSettingSaveable.cpp +++ b/Source/Core/Core/ConfigLoaders/IsSettingSaveable.cpp @@ -39,10 +39,12 @@ bool IsSettingSaveable(const Config::Location& config_location) // TODO: Kill the current Android controller mappings system if (config_location.section == "Android") { - static constexpr std::array android_setting_saveable = { - "ControlScale", "ControlOpacity", "EmulationOrientation", "JoystickRelCenter", - "LastPlatformTab", "MotionControls", "PhoneRumble", "ShowInputOverlay", - "IRMode", "IRAlwaysRecenter", "ShowGameTitles", "InterfaceTheme"}; + static constexpr std::array android_setting_saveable = { + "ControlScale", "ControlOpacity", "EmulationOrientation", + "JoystickRelCenter", "LastPlatformTab", "MotionControls", + "PhoneRumble", "ShowInputOverlay", "IRMode", + "IRAlwaysRecenter", "ShowGameTitles", "InterfaceTheme", + "InterfaceThemeMode"}; return std::any_of( android_setting_saveable.cbegin(), android_setting_saveable.cend(), -- cgit v1.2.3