Merge pull request #4807 from leoetlino/ios-version-for-wads

Remove unneeded write to 0x3140/0x3188 for WADs
This commit is contained in:
Matthew Parlane 2017-02-04 10:08:29 +13:00 committed by GitHub
commit e2b0197ff6
1 changed files with 0 additions and 10 deletions

View File

@ -112,16 +112,6 @@ bool CBoot::Boot_WiiWAD(const std::string& _pFilename)
MSR = 0;
PC = 0x3400;
// Pass the "#002 check"
// Apploader should write the IOS version and revision to 0x3140, and compare it
// to 0x3188 to pass the check, but we don't do it, and i don't know where to read the IOS rev...
// Currently we just write 0xFFFF for the revision, copy manually and it works fine :p
// TODO : figure it correctly : where should we read the IOS rev that the wad "needs" ?
Memory::Write_U16(ContentLoader.GetIosVersion(), 0x00003140);
Memory::Write_U16(0xFFFF, 0x00003142);
Memory::Write_U32(Memory::Read_U32(0x00003140), 0x00003188);
// Load patches and run startup patches
const std::unique_ptr<DiscIO::IVolume> pVolume(DiscIO::CreateVolumeFromFilename(_pFilename));
if (pVolume != nullptr)