Boot: When loading an FST for a Wii game, update IOS_MEM1_ARENA_END

Without doing this, Wii games loaded as an ELF will zero out the FST.
This mirrors the behavior of the actual apploader.
This commit is contained in:
Dwayne Slater 2017-03-13 13:47:58 -04:00
parent 138b0cb14e
commit ec9579ebcd

View File

@ -79,6 +79,12 @@ void CBoot::Load_FST(bool is_wii)
DVDRead(fst_offset << shift, arena_high, fst_size << shift, is_wii);
Memory::Write_U32(arena_high, 0x00000038);
Memory::Write_U32(max_fst_size << shift, 0x0000003c);
if (is_wii)
{
// the apploader changes IOS MEM1_ARENA_END too
Memory::Write_U32(arena_high, 0x00003110);
}
}
void CBoot::UpdateDebugger_MapLoaded()