mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 15:49:50 -06:00
ConfigManager: Always set a valid m_region
Fixes a regression from f85266d
that made WADs
with no detectable region not boot correctly.
The non-WAD code was already handling this correctly.
This commit is contained in:
@ -900,7 +900,12 @@ bool SConfig::AutoSetup(EBootBS2 _BootBS2)
|
|||||||
|
|
||||||
m_region = ContentLoader.GetRegion();
|
m_region = ContentLoader.GetRegion();
|
||||||
const char* retrieved_region_dir = GetDirectoryForRegion(m_region);
|
const char* retrieved_region_dir = GetDirectoryForRegion(m_region);
|
||||||
set_region_dir = retrieved_region_dir ? retrieved_region_dir : EUR_DIR;
|
if (!retrieved_region_dir)
|
||||||
|
{
|
||||||
|
m_region = DiscIO::Region::PAL;
|
||||||
|
retrieved_region_dir = EUR_DIR;
|
||||||
|
}
|
||||||
|
set_region_dir = retrieved_region_dir;
|
||||||
|
|
||||||
bWii = true;
|
bWii = true;
|
||||||
m_BootType = BOOT_WII_NAND;
|
m_BootType = BOOT_WII_NAND;
|
||||||
|
Reference in New Issue
Block a user