ProcessManager: Add BootModeInterface

This commit is contained in:
Michael Scire 2018-05-03 02:58:11 -06:00
parent bd1315022a
commit 593efedb2c
3 changed files with 58 additions and 1 deletions

View file

@ -36,7 +36,6 @@ void __libnx_initheap(void) {
void __appInit(void) {
Result rc;
/* Initialize services we need (TODO: SPL) */
rc = smInitialize();
if (R_FAILED(rc)) {
fatalSimple(MAKERESULT(Module_Libnx, LibnxError_InitFail_SM));
@ -56,11 +55,17 @@ void __appInit(void) {
if (R_FAILED(rc)) {
fatalSimple(0xCAFE << 4 | 2);
}
rc = splInitialize();
if (R_FAILED(rc)) {
fatalSimple(0xCAFE << 4 | 3);
}
}
void __appExit(void) {
/* Cleanup services. */
fsdevUnmountAll();
splExit();
fsprExit();
lrExit();
fsExit();