Boot: Add support for booting NAND titles with just the ID

This commit is contained in:
Léo Lam
2017-10-01 15:41:54 +02:00
parent 62be010ac6
commit 60ba382799
7 changed files with 49 additions and 11 deletions

View File

@ -339,7 +339,8 @@ bool CBoot::BootUp(std::unique_ptr<BootParameters> boot)
HID4.SBE = 1;
// 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);
SetupWiiMemory();
IOS::HLE::GetIOS()->BootIOS(0x000000010000003a);
}
else
{
@ -363,6 +364,12 @@ bool CBoot::BootUp(std::unique_ptr<BootParameters> boot)
return Boot_WiiWAD(nand.content_path);
}
bool operator()(const BootParameters::NANDTitle& nand_title) const
{
SetDefaultDisc();
return BootNANDTitle(nand_title.id);
}
bool operator()(const BootParameters::IPL& ipl) const
{
NOTICE_LOG(BOOT, "Booting GC IPL: %s", ipl.path.c_str());