From 0459bcee7429980efa38d48b725c78b179c576e1 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 3 May 2018 03:58:45 -0600 Subject: [PATCH] ProcessManager: Acquire ldr:pm during init. --- stratosphere/pm/source/pm_main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stratosphere/pm/source/pm_main.cpp b/stratosphere/pm/source/pm_main.cpp index 133ed17be..b7f4bfd4b 100644 --- a/stratosphere/pm/source/pm_main.cpp +++ b/stratosphere/pm/source/pm_main.cpp @@ -60,11 +60,17 @@ void __appInit(void) { if (R_FAILED(rc)) { fatalSimple(0xCAFE << 4 | 3); } + + rc = ldrPmInitialize(); + if (R_FAILED(rc)) { + fatalSimple(0xCAFE << 4 | 4); + } } void __appExit(void) { /* Cleanup services. */ fsdevUnmountAll(); + ldrPmExit(); splExit(); fsprExit(); lrExit();