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:
parent
90ee85f4e8
commit
8475b03bd8
|
@ -900,7 +900,12 @@ bool SConfig::AutoSetup(EBootBS2 _BootBS2)
|
|||
|
||||
m_region = ContentLoader.GetRegion();
|
||||
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;
|
||||
m_BootType = BOOT_WII_NAND;
|
||||
|
|
Loading…
Reference in New Issue