mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Merge pull request #9088 from JosJuice/android-sysconf
Android: Add Wii SYSCONF settings to GUI
This commit is contained in:
@ -401,7 +401,8 @@ bool BootCore(std::unique_ptr<BootParameters> boot, const WindowSystemInfo& wsi)
|
||||
{
|
||||
const u32 wii_language =
|
||||
static_cast<u32>(StartUp.GetLanguageAdjustedForRegion(true, StartUp.m_region));
|
||||
Config::SetCurrent(Config::SYSCONF_LANGUAGE, wii_language);
|
||||
if (wii_language != Config::Get(Config::SYSCONF_LANGUAGE))
|
||||
Config::SetCurrent(Config::SYSCONF_LANGUAGE, wii_language);
|
||||
|
||||
const u8 country_code = static_cast<u8>(Config::Get(Config::SYSCONF_COUNTRY));
|
||||
if (StartUp.m_region != DiscIO::SysConfCountryToRegion(country_code))
|
||||
@ -429,7 +430,7 @@ bool BootCore(std::unique_ptr<BootParameters> boot, const WindowSystemInfo& wsi)
|
||||
|
||||
// Some NTSC Wii games such as Doc Louis's Punch-Out!! and
|
||||
// 1942 (Virtual Console) crash if the PAL60 option is enabled
|
||||
if (StartUp.bWii && DiscIO::IsNTSC(StartUp.m_region))
|
||||
if (StartUp.bWii && DiscIO::IsNTSC(StartUp.m_region) && Config::Get(Config::SYSCONF_PAL60))
|
||||
Config::SetCurrent(Config::SYSCONF_PAL60, false);
|
||||
|
||||
// Ensure any new settings are written to the SYSCONF
|
||||
|
@ -16,8 +16,8 @@ namespace ConfigLoaders
|
||||
{
|
||||
bool IsSettingSaveable(const Config::Location& config_location)
|
||||
{
|
||||
for (Config::System system :
|
||||
{Config::System::GFX, Config::System::DualShockUDPClient, Config::System::Logger})
|
||||
for (Config::System system : {Config::System::SYSCONF, Config::System::GFX,
|
||||
Config::System::DualShockUDPClient, Config::System::Logger})
|
||||
{
|
||||
if (config_location.system == system)
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user