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.
This commit is contained in:
Léo Lam 2017-02-10 18:25:29 +01:00
parent 96e83b5d54
commit 328359118c
1 changed files with 8 additions and 1 deletions

View File

@ -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
{