| 1043 | } |
| 1044 | |
| 1045 | Result APT_GetProgramID(u64* pProgramID) |
| 1046 | { |
| 1047 | u32 cmdbuf[16]; |
| 1048 | cmdbuf[0] = IPC_MakeHeader(0x58,0,2); // 0x580002 |
| 1049 | cmdbuf[1] = IPC_Desc_CurProcessId(); |
| 1050 | |
| 1051 | Result ret = aptSendCommand(cmdbuf); |
| 1052 | if (R_SUCCEEDED(ret)) |
| 1053 | *pProgramID=((u64)cmdbuf[3]<<32)|cmdbuf[2]; |
| 1054 | |
| 1055 | return ret; |
| 1056 | } |
| 1057 | |
| 1058 | Result APT_IsRegistered(NS_APPID appID, bool* out) |
| 1059 | { |
nothing calls this directly
no test coverage detected