Difference between revisions of "APT:GetAppletProgramInfo"

From 3dbrew
Jump to navigation Jump to search
m
 
(2 intermediate revisions by 2 users not shown)
Line 9: Line 9:
 
|-
 
|-
 
| 1
 
| 1
| AppID / programID-low
+
| [[NS_and_APT_Services#AppIDs|AppID]] / Program ID Low
 
|-
 
|-
 
| 2
 
| 2
Line 28: Line 28:
 
|-
 
|-
 
| 2
 
| 2
| u16 title-version from [[AMNet:ListTitles]]
+
| u16, Title Version (from [[AMNet:ListTitles]], only returns version & 0xFC00 as of the [[NS]] title-version for [[9.3.0-21|9.3.0-X]])
 
|}
 
|}
  
Line 34: Line 34:
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
|-
 
|-
Bitmask
+
Bit Mask
 
!  Description
 
!  Description
 
|-
 
|-
 
| 0x1
 
| 0x1
| When set, this enables using [[AMNet:ListTitles]] with mediatype=NAND.
+
| When set, this enables using [[AMNet:ListTitles]] with [[Filesystem_services#MediaType|MediaType]] = NAND.
 
|-
 
|-
 
| 0x2
 
| 0x2
| When set, this enables using [[AMNet:ListTitles]] with mediatype=SD.
+
| When set, this enables using [[AMNet:ListTitles]] with [[Filesystem_services#MediaType|MediaType]] = SD.
 
|-
 
|-
 
| 0x4
 
| 0x4
| When set, this enables using [[AMNet:ListTitles]] with mediatype=gamecard.
+
| When set, this enables using [[AMNet:ListTitles]] with [[Filesystem_services#MediaType|MediaType]] = gamecard.
 
|-
 
|-
 
| 0x10
 
| 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.
+
| When set, the Program ID is determined via the input [[NS_and_APT_Services#AppIDs|AppID]]. When clear, Program ID Low = input cmdword[1], with the Program ID High determined by the following bit masks.
 
|-
 
|-
 
| 0x20
 
| 0x20
| This bitmask must be set when bitmask 0x10 is not set, otherwise an error is returned.
+
| This bit mask must be set when bit mask 0x10 is not set, otherwise an error is returned.
 
|-
 
|-
 
| 0x100
 
| 0x100
| This is used when bitmask 0x10 is clear and bitmask 0x20 is set. When this is clear, programIDhigh = 0x00040000, otherwise programIDhigh = 0x00040010.
+
| This 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=
 
=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.
+
This returns the title-version for the specified applet/application. NS will attempt to use [[AMNet:ListTitles]] for each [[Filesystem_services#MediaType|MediaType]] when the bit mask for the [[Filesystem_services#MediaType|MediaType]] is enabled, in the following order: NAND, SD, and Gamecard.

Latest revision as of 04:19, 22 November 2015

Request[edit]

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

Response[edit]

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

Flags[edit]

Bit Mask 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 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.
0x20 This bit mask must be set when bit mask 0x10 is not set, otherwise an error is returned.
0x100 This 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[edit]

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.