From 328359118c2a6619096bf31dc09f69609f59b05d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Fri, 10 Feb 2017 18:25:29 +0100 Subject: [PATCH] Fix booting Wii DOLs We did not set up any kind of constants in memory for Wii DOLs or even initialize IOS, so a lot of homebrew would just crash when opening ES. --- Source/Core/Core/Boot/Boot.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/Boot/Boot.cpp b/Source/Core/Core/Boot/Boot.cpp index ce9290e306..39d46d7b13 100644 --- a/Source/Core/Core/Boot/Boot.cpp +++ b/Source/Core/Core/Boot/Boot.cpp @@ -388,6 +388,11 @@ bool CBoot::BootUp() PowerPC::DBATUpdated(); PowerPC::IBATUpdated(); + // Because there is no TMD to get the requested system (IOS) version from, + // we default to IOS58, which is the version used by the Homebrew Channel. + if (dolLoader.IsWii()) + SetupWiiMemory(0x000000010000003a); + dolLoader.Load(); PC = dolLoader.GetEntryPoint(); } @@ -422,7 +427,9 @@ bool CBoot::BootUp() // Poor man's bootup if (_StartupPara.bWii) { - SetupWiiMemory(0x0000000100000050ULL); + // Because there is no TMD to get the requested system (IOS) version from, + // we default to IOS58, which is the version used by the Homebrew Channel. + SetupWiiMemory(0x000000010000003a); } else {