pm: on 7.0.0+, npns is launched in maintenance boot (closes #511)

This commit is contained in:
Michael Scire 2019-04-19 03:01:54 -07:00 committed by SciresM
parent 4e5f033e41
commit 908de31a0e
3 changed files with 7 additions and 2 deletions

View file

@ -247,6 +247,11 @@ void EmbeddedBoot2::Main() {
if (!maintenance || std::get<bool>(launch_program)) {
LaunchTitle(std::get<u64>(launch_program), FsStorageId_NandSystem, 0, NULL);
}
/* In 7.0.0, Npns was added to the list of titles to launch during maintenance. */
if (maintenance && std::get<u64>(launch_program) == TitleId_Npns && GetRuntimeFirmwareVersion() >= FirmwareVersion_700) {
LaunchTitle(TitleId_Npns, FsStorageId_NandSystem, 0, NULL);
}
}
/* Allow for user-customizable programs. */