From ec9579ebcdc94bb1ce1a8dd3f81c37c0d27bc546 Mon Sep 17 00:00:00 2001 From: Dwayne Slater Date: Mon, 13 Mar 2017 13:47:58 -0400 Subject: [PATCH] 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. --- Source/Core/Core/Boot/Boot.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Core/Core/Boot/Boot.cpp b/Source/Core/Core/Boot/Boot.cpp index 529810b694..d5e1cb786a 100644 --- a/Source/Core/Core/Boot/Boot.cpp +++ b/Source/Core/Core/Boot/Boot.cpp @@ -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()