HLE bios before loading a .dol

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2987 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-04-17 09:27:35 +00:00
parent 42726a7576
commit 25df6acb15
1 changed files with 23 additions and 0 deletions

View File

@ -247,6 +247,29 @@ bool CBoot::BootUp()
// ===================================================================================
case SCoreStartupParameter::BOOT_DOL:
{
// Check if we have gotten a Wii file or not
bool dolWii = CDolLoader::IsDolWii(_StartupPara.m_strFilename.c_str());
if (dolWii != _StartupPara.bWii)
{
PanicAlert("Warning - starting DOL in wrong console mode!");
}
// stop apploader from running when BIOS boots
VolumeHandler::SetVolumeName("");
if (dolWii)
{
EmulatedBIOS_Wii(false);
}
else
{
if (!VolumeHandler::IsWii() && !_StartupPara.m_strDefaultGCM.empty())
{
VolumeHandler::SetVolumeName(_StartupPara.m_strDefaultGCM.c_str());
EmulatedBIOS(false);
}
}
CDolLoader dolLoader(_StartupPara.m_strFilename.c_str());
PC = dolLoader.GetEntryPoint();
#ifdef _DEBUG