Merge pull request #2347 from JosJuice/fix-dol-crash

Fix DOL crash caused by VolumeHandler removal
This commit is contained in:
Lioncash 2015-04-30 07:36:55 -04:00
commit d69a4697fa
1 changed files with 6 additions and 6 deletions

View File

@ -316,16 +316,16 @@ bool CBoot::EmulatedBS2_Wii()
if (SetupWiiMemory(country_code) == false)
return false;
// This is some kind of consistency check that is compared to the 0x00
// values as the game boots. This location keep the 4 byte ID for as long
// as the game is running. The 6 byte ID at 0x00 is overwritten sometime
// after this check during booting.
DVDInterface::DVDRead(0, 0x3180, 4, true);
// Execute the apploader
bool apploaderRan = false;
if (DVDInterface::VolumeIsValid() && DVDInterface::GetVolume().IsWiiDisc())
{
// This is some kind of consistency check that is compared to the 0x00
// values as the game boots. This location keep the 4 byte ID for as long
// as the game is running. The 6 byte ID at 0x00 is overwritten sometime
// after this check during booting.
DVDInterface::DVDRead(0, 0x3180, 4, true);
// Set up MSR and the BAT SPR registers.
UReg_MSR& m_MSR = ((UReg_MSR&)PowerPC::ppcState.msr);
m_MSR.FP = 1;