diff --git a/stratosphere/ams_mitm/source/fs_mitm/fsmitm_service.hpp b/stratosphere/ams_mitm/source/fs_mitm/fsmitm_service.hpp index e1bb3c4..1e818ab 100644 --- a/stratosphere/ams_mitm/source/fs_mitm/fsmitm_service.hpp +++ b/stratosphere/ams_mitm/source/fs_mitm/fsmitm_service.hpp @@ -61,7 +61,7 @@ /* TODO: intercepting everything seems to cause issues with sleep mode, for some reason. */ /* Figure out why, and address it. */ - if (tid == TitleId_AppletQlaunch) { + if (tid == TitleId_AppletQlaunch || tid == TitleId_AppletMaintenanceMenu) { has_launched_qlaunch = true; } diff --git a/stratosphere/pm/source/pm_boot2.cpp b/stratosphere/pm/source/pm_boot2.cpp index e04eb1c..410eab8 100644 --- a/stratosphere/pm/source/pm_boot2.cpp +++ b/stratosphere/pm/source/pm_boot2.cpp @@ -247,6 +247,11 @@ if (!maintenance || std::get(launch_program)) { LaunchTitle(std::get(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(launch_program) == TitleId_Npns && GetRuntimeFirmwareVersion() >= FirmwareVersion_700) { + LaunchTitle(TitleId_Npns, FsStorageId_NandSystem, 0, NULL); + } } /* Allow for user-customizable programs. */ diff --git a/stratosphere/pm/source/pm_main.cpp b/stratosphere/pm/source/pm_main.cpp index 3aac9a3..5c53aa2 100644 --- a/stratosphere/pm/source/pm_main.cpp +++ b/stratosphere/pm/source/pm_main.cpp @@ -179,7 +179,7 @@ /* TODO: Create services. */ server_manager->AddWaitable(new ServiceServer("pm:shell", 3)); server_manager->AddWaitable(new ServiceServer("pm:dmnt", 2)); - server_manager->AddWaitable(new ServiceServer("pm:bm", 5)); + server_manager->AddWaitable(new ServiceServer("pm:bm", 6)); server_manager->AddWaitable(new ServiceServer("pm:info", 1)); /* Loop forever, servicing our services. */