mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Port some settings to the new config system
Other than the controller settings and JIT debug settings, these are the only settings which were defined in Java code but not defined in the new config system in C++. (There are still a lot of settings that are defined in the new config system but not yet saveable in the new config system, though.)
This commit is contained in:
@ -25,14 +25,15 @@ bool IsSettingSaveable(const Config::Location& config_location)
|
||||
|
||||
if (config_location.system == Config::System::Main)
|
||||
{
|
||||
for (const char* section : {"NetPlay", "General", "Display", "Network"})
|
||||
for (const std::string& section :
|
||||
{"NetPlay", "General", "Display", "Network", "Analytics", "Android"})
|
||||
{
|
||||
if (config_location.section == section)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
static constexpr std::array<const Config::Location*, 13> s_setting_saveable = {
|
||||
static constexpr std::array<const Config::Location*, 16> s_setting_saveable = {
|
||||
// Main.Core
|
||||
|
||||
&Config::MAIN_DEFAULT_ISO.location,
|
||||
@ -46,6 +47,12 @@ bool IsSettingSaveable(const Config::Location& config_location)
|
||||
&Config::MAIN_MEM1_SIZE.location,
|
||||
&Config::MAIN_MEM2_SIZE.location,
|
||||
&Config::MAIN_GFX_BACKEND.location,
|
||||
&Config::MAIN_ENABLE_SAVESTATES.location,
|
||||
|
||||
// Main.Interface
|
||||
|
||||
&Config::MAIN_USE_PANIC_HANDLERS.location,
|
||||
&Config::MAIN_OSD_MESSAGES.location,
|
||||
|
||||
// Main.Interface
|
||||
|
||||
|
Reference in New Issue
Block a user