Skip to content

Commit

Permalink
Added disabled _appletExitProcessAndReturn().
Browse files Browse the repository at this point in the history
  • Loading branch information
yellows8 committed Feb 13, 2018
1 parent 7fa0397 commit f5606bf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions nx/source/services/applet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit f5606bf

Please sign in to comment.