Fake IOSv9 r2.4 if no version is found (elf loading)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3317 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-06-04 00:02:49 +00:00
parent 43c18bb552
commit ba3ceeafb7

View file

@ -367,7 +367,9 @@ bool CBoot::EmulatedBIOS_Wii(bool _bDebug)
// Pass the "#002 check"
// Apploader writes the IOS version and revision here, we copy it
Memory::Write_U32(Memory::Read_U32(0x80003188), 0x00003140);
// Fake IOSv9 r2.4 if no version is found (elf loading)
u32 firmwareVer = Memory::Read_U32(0x80003188);
Memory::Write_U32(firmwareVer ? firmwareVer : 0x00090204, 0x00003140);
// Load patches and run startup patches
std::string gameID = VolumeHandler::GetVolume()->GetUniqueID();