Skip to content

Commit

Permalink
Added disabled applet code for cmds Exit, LockExit, and UnlockExit.
Browse files Browse the repository at this point in the history
  • Loading branch information
yellows8 committed Feb 11, 2018
1 parent 507bf71 commit a31e53d
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions nx/source/services/applet.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ static Result _appletGetPerformanceMode(u32 *out);
static Result _appletSetOperationModeChangedNotification(u8 flag);
static Result _appletSetPerformanceModeChangedNotification(u8 flag);

//static Result _appletSelfExit(void);
//static Result _appletLockExit(void);
//static Result _appletUnlockExit(void);

Result appletInitialize(void)
{
Expand Down Expand Up @@ -658,6 +661,49 @@ static Result _appletGetCurrentFocusState(u8 *out) {
return rc;
}

/*static Result _appletCmdNoIO(Service* session, u64 cmd_id) {
IpcCommand c;
ipcInitialize(&c);
struct {
u64 magic;
u64 cmd_id;
} *raw;
raw = ipcPrepareHeader(&c, sizeof(*raw));
raw->magic = SFCI_MAGIC;
raw->cmd_id = cmd_id;
Result rc = serviceIpcDispatch(session);
if (R_SUCCEEDED(rc)) {
IpcParsedCommand r;
ipcParse(&r);
struct {
u64 magic;
u64 result;
} *resp = r.Raw;
rc = resp->result;
}
return rc;
}*/

/*static Result _appletSelfExit(void) {
return _appletCmdNoIO(&g_appletISelfController, 0);
}*/

/*static Result _appletLockExit(void) {
return _appletCmdNoIO(&g_appletISelfController, 1);
}
static Result _appletUnlockExit(void) {
return _appletCmdNoIO(&g_appletISelfController, 2);
}*/

Result appletSetScreenShotPermission(s32 val) {
IpcCommand c;
ipcInitialize(&c);
Expand Down

0 comments on commit a31e53d

Please sign in to comment.