Merge pull request #2188 from JosJuice/dol-cleanup

DOL loader cleanup with std::vector and safety checks
This commit is contained in:
Ryan Houdek
2015-05-25 23:51:40 -04:00
5 changed files with 87 additions and 74 deletions

View File

@ -234,7 +234,7 @@ bool CBoot::BootUp()
DVDInterface::SetVolumeName(_StartupPara.m_strFilename);
DVDInterface::SetDiscInside(DVDInterface::VolumeIsValid());
if (!DVDInterface::VolumeIsValid())
break;
return false;
const DiscIO::IVolume& pVolume = DVDInterface::GetVolume();
@ -297,6 +297,9 @@ bool CBoot::BootUp()
case SCoreStartupParameter::BOOT_DOL:
{
CDolLoader dolLoader(_StartupPara.m_strFilename);
if (!dolLoader.IsValid())
return false;
// Check if we have gotten a Wii file or not
bool dolWii = dolLoader.IsWii();
if (dolWii != _StartupPara.bWii)