From f5606bfb8ae68cf271544ab620fd6007337a6ae6 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Tue, 13 Feb 2018 12:16:17 -0500 Subject: [PATCH] Added disabled _appletExitProcessAndReturn(). --- nx/source/services/applet.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nx/source/services/applet.c b/nx/source/services/applet.c index c4e924aa..f016f48a 100644 --- a/nx/source/services/applet.c +++ b/nx/source/services/applet.c @@ -65,6 +65,8 @@ static Result _appletSetPerformanceModeChangedNotification(u8 flag); //static Result _appletLockExit(void); //static Result _appletUnlockExit(void); +//static Result _appletExitProcessAndReturn(void); + Result appletInitialize(void) { if (serviceIsActive(&g_appletSrv)) @@ -235,6 +237,10 @@ void appletExit(void) { apmExit(); + //TODO: Enable this somehow later with more condition(s)? + /*if (__nx_applet_type == AppletType_LibraryApplet) + _appletExitProcessAndReturn();*/ + if (g_appletMessageEventHandle != INVALID_HANDLE) { svcCloseHandle(g_appletMessageEventHandle); g_appletMessageEventHandle = INVALID_HANDLE; @@ -964,6 +970,10 @@ Result appletCreateManagedDisplayLayer(u64 *out) { return rc; } +/*static Result _appletExitProcessAndReturn(void) { + return _appletCmdNoIO(&g_appletILibraryAppletSelfAccessor, 10); +}*/ + u8 appletGetOperationMode(void) { return g_appletOperationMode; }