mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00:00
Merge pull request #7440 from JosJuice/wii-menu-1.0-region
Never return Unknown from SConfig::GetFallbackRegion
This commit is contained in:
commit
c56516502d
1 changed files with 5 additions and 1 deletions
|
@ -955,7 +955,11 @@ DiscIO::Region SConfig::GetFallbackRegion()
|
||||||
IOS::HLE::Kernel ios;
|
IOS::HLE::Kernel ios;
|
||||||
const IOS::ES::TMDReader system_menu_tmd = ios.GetES()->FindInstalledTMD(Titles::SYSTEM_MENU);
|
const IOS::ES::TMDReader system_menu_tmd = ios.GetES()->FindInstalledTMD(Titles::SYSTEM_MENU);
|
||||||
if (system_menu_tmd.IsValid())
|
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.
|
// Fall back to PAL.
|
||||||
return DiscIO::Region::PAL;
|
return DiscIO::Region::PAL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue