Updated for latest libnx (fatalSimple -> fatalThrow).

This commit is contained in:
yellows8 2019-10-25 18:51:09 -04:00
parent c1524e86d6
commit c3c4c4f07c
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
3 changed files with 6 additions and 6 deletions

View File

@ -134,7 +134,7 @@ void userAppInit(void)
rc = plInitialize();
if (R_FAILED(rc))
fatalSimple(rc);
fatalThrow(rc);
LanguageCode = getSystemLanguage();
}

View File

@ -17,7 +17,7 @@ void userAppInit(void)
rc = irsInitialize();
if (R_FAILED(rc))
fatalSimple(rc);
fatalThrow(rc);
}
void userAppExit(void)

View File

@ -35,23 +35,23 @@ void __attribute__((weak)) __appInit(void)
// Initialize default services.
rc = smInitialize();
if (R_FAILED(rc))
fatalSimple(MAKERESULT(Module_Libnx, LibnxError_InitFail_SM));
fatalThrow(MAKERESULT(Module_Libnx, LibnxError_InitFail_SM));
// Enable this if you want to use HID.
/*rc = hidInitialize();
if (R_FAILED(rc))
fatalSimple(MAKERESULT(Module_Libnx, LibnxError_InitFail_HID));*/
fatalThrow(MAKERESULT(Module_Libnx, LibnxError_InitFail_HID));*/
//Enable this if you want to use time.
/*rc = timeInitialize();
if (R_FAILED(rc))
fatalSimple(MAKERESULT(Module_Libnx, LibnxError_InitFail_Time));
fatalThrow(MAKERESULT(Module_Libnx, LibnxError_InitFail_Time));
__libnx_init_time();*/
rc = fsInitialize();
if (R_FAILED(rc))
fatalSimple(MAKERESULT(Module_Libnx, LibnxError_InitFail_FS));
fatalThrow(MAKERESULT(Module_Libnx, LibnxError_InitFail_FS));
fsdevMountSdmc();
}