fatal: Implement StateTransitionStopTask

This commit is contained in:
Michael Scire 2018-11-10 01:19:52 -08:00
parent 4d1481e2eb
commit b771c42f7f
4 changed files with 69 additions and 9 deletions

View file

@ -59,24 +59,30 @@ void __appInit(void) {
rc = smInitialize();
if (R_FAILED(rc)) {
fatalSimple(MAKERESULT(Module_Libnx, LibnxError_InitFail_SM));
std::abort();
}
rc = setsysInitialize();
if (R_FAILED(rc)) {
fatalSimple(rc);
std::abort();
}
rc = pminfoInitialize();
if (R_FAILED(rc)) {
fatalSimple(rc);
std::abort();
}
CheckAtmosphereVersion(CURRENT_ATMOSPHERE_VERSION);
rc = spsmInitialize();
if (R_FAILED(rc)) {
std::abort();
}
/* fatal cannot throw fatal, so don't do: CheckAtmosphereVersion(CURRENT_ATMOSPHERE_VERSION); */
}
void __appExit(void) {
/* Cleanup services. */
spsmExit();
pminfoExit();
setsysExit();
smExit();