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

Function APT_GetAppletManInfo

libctru/source/services/apt.c:994–1010  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

992}
993
994Result APT_GetAppletManInfo(APT_AppletPos inpos, APT_AppletPos* outpos, NS_APPID* req_appid, NS_APPID* menu_appid, NS_APPID* active_appid)
995{
996 u32 cmdbuf[16];
997 cmdbuf[0]=IPC_MakeHeader(0x5,1,0); // 0x50040
998 cmdbuf[1]=inpos;
999
1000 Result ret = aptSendCommand(cmdbuf);
1001 if (R_SUCCEEDED(ret))
1002 {
1003 if (outpos) *outpos =cmdbuf[2];
1004 if (req_appid) *req_appid =cmdbuf[3];
1005 if (menu_appid) *menu_appid =cmdbuf[4];
1006 if (active_appid) *active_appid=cmdbuf[5];
1007 }
1008
1009 return ret;
1010}
1011
1012Result APT_GetAppletInfo(NS_APPID appID, u64* pProgramID, u8* pMediaType, bool* pRegistered, bool* pLoadState, APT_AppletAttr* pAttributes)
1013{

Callers 1

aptGetMenuAppIDFunction · 0.85

Calls 2

IPC_MakeHeaderFunction · 0.85
aptSendCommandFunction · 0.85

Tested by

no test coverage detected