mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
ConfigManager: Set homebrew video mode based on Dolphin's PAL60 config instead of always using 50Hz.
This is a bit indirect, but since homebrew always boots in a European environment the framerate depends on the bPAL60 flag, which is always auto turned off if bNTSC is set to true as of 2e5e724f94
. By actually indicating that we're PAL on homebrew boot, the rest just falls into place.
This commit is contained in:
@ -717,17 +717,21 @@ bool SConfig::AutoSetup(EBootBS2 _BootBS2)
|
|||||||
else if (!strcasecmp(Extension.c_str(), ".elf"))
|
else if (!strcasecmp(Extension.c_str(), ".elf"))
|
||||||
{
|
{
|
||||||
bWii = CBoot::IsElfWii(m_strFilename);
|
bWii = CBoot::IsElfWii(m_strFilename);
|
||||||
set_region_dir = USA_DIR;
|
// TODO: Right now GC homebrew boots in NTSC and Wii homebrew in PAL.
|
||||||
|
// This is intentional so that Wii homebrew can boot in both 50Hz and 60Hz, without forcing all GC homebrew to 50Hz.
|
||||||
|
// In the future, it probably makes sense to add a Region setting for homebrew somewhere in the emulator config.
|
||||||
|
bNTSC = bWii ? false : true;
|
||||||
|
set_region_dir = bNTSC ? USA_DIR : EUR_DIR;
|
||||||
m_BootType = BOOT_ELF;
|
m_BootType = BOOT_ELF;
|
||||||
bNTSC = true;
|
|
||||||
}
|
}
|
||||||
else if (!strcasecmp(Extension.c_str(), ".dol"))
|
else if (!strcasecmp(Extension.c_str(), ".dol"))
|
||||||
{
|
{
|
||||||
CDolLoader dolfile(m_strFilename);
|
CDolLoader dolfile(m_strFilename);
|
||||||
bWii = dolfile.IsWii();
|
bWii = dolfile.IsWii();
|
||||||
set_region_dir = USA_DIR;
|
// TODO: See the ELF code above.
|
||||||
|
bNTSC = bWii ? false : true;
|
||||||
|
set_region_dir = bNTSC ? USA_DIR : EUR_DIR;
|
||||||
m_BootType = BOOT_DOL;
|
m_BootType = BOOT_DOL;
|
||||||
bNTSC = true;
|
|
||||||
}
|
}
|
||||||
else if (!strcasecmp(Extension.c_str(), ".dff"))
|
else if (!strcasecmp(Extension.c_str(), ".dff"))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user