Difference between revisions of "APT:GetTargetPlatform"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x01010000] |} =Response= {| class="wikitable" border="1" |- ! Index Word ! Des...")
 
m
 
(One intermediate revision by the same user not shown)
Line 22: Line 22:
 
|-
 
|-
 
| 2
 
| 2
| u8, Status (0 = Old 3DS, 1 = New 3DS)
+
| u8, Target Platform (0 = Old 3DS, 1 = New 3DS)
 
|}
 
|}
  
 
=Description=
 
=Description=
 
This writes an output u8 to cmdreply indexword[2]. This uses [[PTMSYSM:CheckNew3DS]]. When a certain NS state field is non-zero, the output value is zero, otherwise the output is from [[PTMSYSM:CheckNew3DS]]. Normally this NS state field is zero, however this state field is set to 1 when [[APT:PrepareToStartApplication]] is used with flags bit8 is set.
 
This writes an output u8 to cmdreply indexword[2]. This uses [[PTMSYSM:CheckNew3DS]]. When a certain NS state field is non-zero, the output value is zero, otherwise the output is from [[PTMSYSM:CheckNew3DS]]. Normally this NS state field is zero, however this state field is set to 1 when [[APT:PrepareToStartApplication]] is used with flags bit8 is set.

Latest revision as of 09:20, 23 July 2023

Request[edit]

Index Word Description
0 Header code [0x01010000]

Response[edit]

Index Word Description
0 Header code
1 Result code
2 u8, Target Platform (0 = Old 3DS, 1 = New 3DS)

Description[edit]

This writes an output u8 to cmdreply indexword[2]. This uses PTMSYSM:CheckNew3DS. When a certain NS state field is non-zero, the output value is zero, otherwise the output is from PTMSYSM:CheckNew3DS. Normally this NS state field is zero, however this state field is set to 1 when APT:PrepareToStartApplication is used with flags bit8 is set.