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:
fires.gc 2009-03-13 21:45:27 +00:00
parent 3e037c71d7
commit bf30cc8a72
1 changed files with 14 additions and 1 deletions

View File

@ -142,10 +142,23 @@ bool SCoreStartupParameter::AutoSetup(EBootBios _BootBios)
}
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;
Region = EUR_DIR;
m_BootType = BOOT_WII_NAND;
bNTSC = false;
}
else
{