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:
JosJuice 2017-01-24 16:34:08 +01:00
parent 90ee85f4e8
commit 8475b03bd8
1 changed files with 6 additions and 1 deletions

View File

@ -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;