Merge pull request #2347 from JosJuice/fix-dol-crash
Fix DOL crash caused by VolumeHandler removal
This commit is contained in:
commit
d69a4697fa
|
@ -316,16 +316,16 @@ bool CBoot::EmulatedBS2_Wii()
|
||||||
if (SetupWiiMemory(country_code) == false)
|
if (SetupWiiMemory(country_code) == false)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// 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
|
// 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
|
// 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
|
// as the game is running. The 6 byte ID at 0x00 is overwritten sometime
|
||||||
// after this check during booting.
|
// after this check during booting.
|
||||||
DVDInterface::DVDRead(0, 0x3180, 4, true);
|
DVDInterface::DVDRead(0, 0x3180, 4, true);
|
||||||
|
|
||||||
// Execute the apploader
|
|
||||||
bool apploaderRan = false;
|
|
||||||
if (DVDInterface::VolumeIsValid() && DVDInterface::GetVolume().IsWiiDisc())
|
|
||||||
{
|
|
||||||
// Set up MSR and the BAT SPR registers.
|
// Set up MSR and the BAT SPR registers.
|
||||||
UReg_MSR& m_MSR = ((UReg_MSR&)PowerPC::ppcState.msr);
|
UReg_MSR& m_MSR = ((UReg_MSR&)PowerPC::ppcState.msr);
|
||||||
m_MSR.FP = 1;
|
m_MSR.FP = 1;
|
||||||
|
|
Loading…
Reference in New Issue