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(); rc = plInitialize();
if (R_FAILED(rc)) if (R_FAILED(rc))
fatalSimple(rc); fatalThrow(rc);
LanguageCode = getSystemLanguage(); LanguageCode = getSystemLanguage();
} }

View File

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

View File

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