Properly fixed __nx_applet_exit_mode handling, previously appletExit() called by _appletExitProcess didn't run since refcount was already 0. Closes #355.

This commit is contained in:
yellows8 2019-12-14 11:51:48 -05:00
parent 2f7d9bf026
commit d25bcc486a
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43

View File

@ -334,6 +334,7 @@ static void _appletInfiniteSleepLoop(void) {
}
static void NORETURN _appletExitProcess(int result_code) {
appletInitialize();
appletExit();
if (R_SUCCEEDED(g_appletExitProcessResult)) _appletInfiniteSleepLoop();