mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 07:45:33 +01:00
Merge pull request #4807 from leoetlino/ios-version-for-wads
Remove unneeded write to 0x3140/0x3188 for WADs
This commit is contained in:
commit
e2b0197ff6
@ -112,16 +112,6 @@ bool CBoot::Boot_WiiWAD(const std::string& _pFilename)
|
|||||||
MSR = 0;
|
MSR = 0;
|
||||||
PC = 0x3400;
|
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
|
// Load patches and run startup patches
|
||||||
const std::unique_ptr<DiscIO::IVolume> pVolume(DiscIO::CreateVolumeFromFilename(_pFilename));
|
const std::unique_ptr<DiscIO::IVolume> pVolume(DiscIO::CreateVolumeFromFilename(_pFilename));
|
||||||
if (pVolume != nullptr)
|
if (pVolume != nullptr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user