Permalink
Browse files

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

Never return Unknown from SConfig::GetFallbackRegion
  • Loading branch information...
leoetlino committed Nov 17, 2018
2 parents 08f9df2 + 34edcdd commit c56516502d14d61b3033f336a837171e7c4335d9
Showing with 5 additions and 1 deletion.
  1. +5 −1 Source/Core/Core/ConfigManager.cpp
@@ -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;

0 comments on commit c565165

Please sign in to comment.