added pal/ntsc detection for WADs
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2654 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
3e037c71d7
commit
bf30cc8a72
|
@ -142,10 +142,23 @@ bool SCoreStartupParameter::AutoSetup(EBootBios _BootBios)
|
||||||
}
|
}
|
||||||
else if (DiscIO::CNANDContentManager::Access().GetNANDLoader(m_strFilename).IsValid())
|
else if (DiscIO::CNANDContentManager::Access().GetNANDLoader(m_strFilename).IsValid())
|
||||||
{
|
{
|
||||||
|
const DiscIO::INANDContentLoader& ContentLoader = DiscIO::CNANDContentManager::Access().GetNANDLoader(m_strFilename);
|
||||||
|
u64 TitleID = ContentLoader.GetTitleID();
|
||||||
|
char* pTitleID = (char*)&TitleID;
|
||||||
|
|
||||||
|
// NTSC or PAL
|
||||||
|
if ((pTitleID[0] == 'E') || (pTitleID[0] == 'J'))
|
||||||
|
{
|
||||||
|
bNTSC = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
bNTSC = false;
|
||||||
|
}
|
||||||
|
|
||||||
bWii = true;
|
bWii = true;
|
||||||
Region = EUR_DIR;
|
Region = EUR_DIR;
|
||||||
m_BootType = BOOT_WII_NAND;
|
m_BootType = BOOT_WII_NAND;
|
||||||
bNTSC = false;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue