ams.mitm: add bpc handler, for reboot power button stuff

This commit is contained in:
Michael Scire 2019-02-04 21:17:05 -08:00
parent e715197290
commit 784964d49d
12 changed files with 226 additions and 26 deletions

View file

@ -225,8 +225,13 @@ void EmbeddedBoot2::Main() {
BootModeService::SetMaintenanceBootForEmbeddedBoot2();
}
/* Launch set:mitm, wait for it. */
/* Wait for other atmosphere mitm modules to initialize. */
WaitForMitm("set:sys");
if (GetRuntimeFirmwareVersion() >= FirmwareVersion_200) {
WaitForMitm("bpc");
} else {
WaitForMitm("bpc:c");
}
/* Launch usb. */
LaunchTitle(Boot2KnownTitleId::usb, FsStorageId_NandSystem, 0, NULL);