Boot: Split out some code to a new function SetupGCMemory

Just like the existing function SetupWiiMemory.
This commit is contained in:
JosJuice
2017-08-01 15:23:44 +02:00
parent a8606f5d13
commit fea75d045c
3 changed files with 26 additions and 23 deletions

View File

@ -324,18 +324,19 @@ bool CBoot::BootUp(std::unique_ptr<BootParameters> boot)
SetDefaultDisc();
SetupMSR();
SetupBAT(config.bWii);
if (config.bWii)
{
HID4.SBE = 1;
SetupMSR();
SetupBAT(config.bWii);
// 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(nullptr, 0x000000010000003a);
}
else
{
EmulatedBS2_GC(nullptr, true);
SetupGCMemory();
}
PC = executable.reader->GetEntryPoint();