| 1010 | } |
| 1011 | |
| 1012 | Result APT_GetAppletInfo(NS_APPID appID, u64* pProgramID, u8* pMediaType, bool* pRegistered, bool* pLoadState, APT_AppletAttr* pAttributes) |
| 1013 | { |
| 1014 | u32 cmdbuf[16]; |
| 1015 | cmdbuf[0]=IPC_MakeHeader(0x6,1,0); // 0x60040 |
| 1016 | cmdbuf[1]=appID; |
| 1017 | |
| 1018 | Result ret = aptSendCommand(cmdbuf); |
| 1019 | if (R_SUCCEEDED(ret)) |
| 1020 | { |
| 1021 | if (pProgramID) *pProgramID =(u64)cmdbuf[2]|((u64)cmdbuf[3]<<32); |
| 1022 | if (pMediaType) *pMediaType =cmdbuf[4]; |
| 1023 | if (pRegistered) *pRegistered=cmdbuf[5] & 0xFF; |
| 1024 | if (pLoadState) *pLoadState =cmdbuf[6] & 0xFF; |
| 1025 | if (pAttributes) *pAttributes=cmdbuf[7]; |
| 1026 | } |
| 1027 | |
| 1028 | return ret; |
| 1029 | } |
| 1030 | |
| 1031 | Result APT_GetAppletProgramInfo(u32 id, u32 flags, u16 *titleversion) |
| 1032 | { |
nothing calls this directly
no test coverage detected