mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-28 13:44:11 -04:00
PM: Embed boot2 logic in PM.
This commit is contained in:
parent
6adcb483e5
commit
9f16062767
4 changed files with 30 additions and 259 deletions
|
@ -3,6 +3,7 @@
|
|||
#include "pm_registration.hpp"
|
||||
#include "pm_resource_limits.hpp"
|
||||
#include "pm_shell.hpp"
|
||||
#include "pm_boot2.hpp"
|
||||
|
||||
static bool g_has_boot_finished = false;
|
||||
|
||||
|
@ -148,10 +149,9 @@ std::tuple<Result> ShellService::clear_process_notification_flag(u64 pid) {
|
|||
}
|
||||
|
||||
std::tuple<Result> ShellService::notify_boot_finished() {
|
||||
u64 boot2_pid;
|
||||
if (!g_has_boot_finished) {
|
||||
g_has_boot_finished = true;
|
||||
return {Registration::LaunchProcess(BOOT2_TITLE_ID, FsStorageId_NandSystem, 0, &boot2_pid)};
|
||||
EmbeddedBoot2::Main();
|
||||
}
|
||||
return {0};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue