APT:GetAppletProgramInfo: Difference between revisions
Jump to navigation
Jump to search
Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x004D0080] |- | 1 | AppID / programID-low |- | 2 | Flags |} =Response= {| class=..." |
No edit summary |
||
Line 29: | Line 29: | ||
| 2 | | 2 | ||
| u16 title-version from [[AMNet:ListTitles]] | | u16 title-version from [[AMNet:ListTitles]] | ||
|} | |||
=Flags= | |||
{| class="wikitable" border="1" | |||
|- | |||
! Bitmask | |||
! Description | |||
|- | |||
| 0x1 | |||
| When set, this enables using [[AMNet:ListTitles]] with mediatype=NAND. | |||
|- | |||
| 0x2 | |||
| When set, this enables using [[AMNet:ListTitles]] with mediatype=SD. | |||
|- | |||
| 0x4 | |||
| When set, this enables using [[AMNet:ListTitles]] with mediatype=gamecard. | |||
|- | |||
| 0x10 | |||
| When set, the programID is determined via the input AppID. When clear, programID-low = input cmdword[1], with the programID-high determined by the following bitmasks. | |||
|- | |||
| 0x20 | |||
| This bitmask must be set when bitmask 0x10 is not set, otherwise an error is returned. | |||
|- | |||
| 0x100 | |||
| This is used when bitmask 0x10 is clear and bitmask 0x20 is set. When this is clear, programIDhigh = 0x00040000, otherwise programIDhigh = 0x00040010. | |||
|} | |} | ||
=Description= | =Description= | ||
This returns the title-version for the specified applet/application. | This returns the title-version for the specified applet/application. NS will attempt to use [[AMNet:ListTitles]] for each mediatype when the bitmask for the mediatype is enabled, in the following order: NAND, SD, and gamecard. |
Revision as of 05:27, 2 October 2013
Request
Index Word | Description |
---|---|
0 | Header code [0x004D0080] |
1 | AppID / programID-low |
2 | Flags |
Response
Index Word | Description |
---|---|
0 | Header code |
1 | Result code |
2 | u16 title-version from AMNet:ListTitles |
Flags
Bitmask | Description |
---|---|
0x1 | When set, this enables using AMNet:ListTitles with mediatype=NAND. |
0x2 | When set, this enables using AMNet:ListTitles with mediatype=SD. |
0x4 | When set, this enables using AMNet:ListTitles with mediatype=gamecard. |
0x10 | When set, the programID is determined via the input AppID. When clear, programID-low = input cmdword[1], with the programID-high determined by the following bitmasks. |
0x20 | This bitmask must be set when bitmask 0x10 is not set, otherwise an error is returned. |
0x100 | This is used when bitmask 0x10 is clear and bitmask 0x20 is set. When this is clear, programIDhigh = 0x00040000, otherwise programIDhigh = 0x00040010. |
Description
This returns the title-version for the specified applet/application. NS will attempt to use AMNet:ListTitles for each mediatype when the bitmask for the mediatype is enabled, in the following order: NAND, SD, and gamecard.