1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-29 23:32:23 +00:00

ProcessManager: Acquire ldr:pm during init.

This commit is contained in:
Michael Scire 2018-05-03 03:58:45 -06:00
parent b5412df53b
commit 0459bcee74

View file

@ -60,11 +60,17 @@ void __appInit(void) {
if (R_FAILED(rc)) { if (R_FAILED(rc)) {
fatalSimple(0xCAFE << 4 | 3); fatalSimple(0xCAFE << 4 | 3);
} }
rc = ldrPmInitialize();
if (R_FAILED(rc)) {
fatalSimple(0xCAFE << 4 | 4);
}
} }
void __appExit(void) { void __appExit(void) {
/* Cleanup services. */ /* Cleanup services. */
fsdevUnmountAll(); fsdevUnmountAll();
ldrPmExit();
splExit(); splExit();
fsprExit(); fsprExit();
lrExit(); lrExit();