Merge pull request #7440 from JosJuice/wii-menu-1.0-region

Never return Unknown from SConfig::GetFallbackRegion
This commit is contained in:
Léo Lam 2018-11-17 21:18:38 +01:00 committed by GitHub
commit c56516502d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -955,7 +955,11 @@ DiscIO::Region SConfig::GetFallbackRegion()
IOS::HLE::Kernel ios;
const IOS::ES::TMDReader system_menu_tmd = ios.GetES()->FindInstalledTMD(Titles::SYSTEM_MENU);
if (system_menu_tmd.IsValid())
return system_menu_tmd.GetRegion();
{
const DiscIO::Region region = system_menu_tmd.GetRegion();
if (region != DiscIO::Region::Unknown)
return region;
}
// Fall back to PAL.
return DiscIO::Region::PAL;