mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Fix DOL crash caused by VolumeHandler removal
Similar to the WAD crash (0b44d7c
) but in another part of the boot code.
This commit is contained in:
parent
989c0f427f
commit
f7d20204bb
@ -316,16 +316,16 @@ bool CBoot::EmulatedBS2_Wii()
|
||||
if (SetupWiiMemory(country_code) == 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
|
||||
// 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())
|
||||
{
|
||||
// Set up MSR and the BAT SPR registers.
|
||||
UReg_MSR& m_MSR = ((UReg_MSR&)PowerPC::ppcState.msr);
|
||||
m_MSR.FP = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user