Added disabled _appletExitProcessAndReturn().

This commit is contained in:
yellows8 2018-02-13 12:16:17 -05:00
parent 7fa0397c16
commit f5606bfb8a

View File

@ -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;
}