APT:GetAppletProgramInfo

APT:GetAppletProgramInfo

Request #

Index WordDescription
0Header code [0x004D0080]
1AppID / Program ID Low
2Flags

Response #

Index WordDescription
0Header code
1Result code
2u16, Title Version (from AMNet:ListTitles, only returns version & 0xFC00 as of the NS title-version for 9.3.0-X)

Flags #

Bit MaskDescription
0x1When set, this enables using AMNet:ListTitles with MediaType = NAND.
0x2When set, this enables using AMNet:ListTitles with MediaType = SD.
0x4When set, this enables using AMNet:ListTitles with MediaType = gamecard.
0x10When set, the Program ID is determined via the input AppID. When clear, Program ID Low = input cmdword[1], with the Program ID High determined by the following bit masks.
0x20This bit mask must be set when bit mask 0x10 is not set, otherwise an error is returned.
0x100This is used when bit mask 0x10 is clear and bit mask 0x20 is set. When this is clear, Program ID High = 0x00040000, otherwise Program ID High = 0x00040010.

Description #

This returns the title-version for the specified applet/application. NS will attempt to use AMNet:ListTitles for each MediaType when the bit mask for the MediaType is enabled, in the following order: NAND, SD, and Gamecard.