MCPcopy Create free account
hub / github.com/devkitPro/libctru / PMAPP_PrepareForReboot

Function PMAPP_PrepareForReboot

libctru/source/services/pmapp.c:108–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108Result PMAPP_PrepareForReboot(s64 timeout)
109{
110 Result ret = 0;
111 u32 *cmdbuf = getThreadCommandBuffer();
112
113 cmdbuf[0] = IPC_MakeHeader(0x6, 2, 2); // 0x60082
114 cmdbuf[1] = (u32)timeout;
115 cmdbuf[2] = (u32)(timeout >> 32);
116 cmdbuf[3] = IPC_Desc_CurProcessId();
117 cmdbuf[4] = 0;
118
119 if(R_FAILED(ret = svcSendSyncRequest(pmAppHandle)))return ret;
120
121 return (Result)cmdbuf[1];
122}
123
124Result PMAPP_GetFIRMLaunchParams(void *out, u32 size)
125{

Callers

nothing calls this directly

Calls 3

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85
IPC_Desc_CurProcessIdFunction · 0.85

Tested by

no test coverage detected