Difference between revisions of "APT:GetApplicationRunningMode"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x01030000] |} =Response= {| class="wikitable" border="1" |- ! Index Word !...")
 
 
(One intermediate revision by the same user not shown)
Line 22: Line 22:
 
|-
 
|-
 
| 2
 
| 2
| u8, Application Running Mode ()
+
| u8, Application Running Mode
 
|}
 
|}
  
 
=Description=
 
=Description=
This writes an output u8 to cmdreply[2], the value is determined by checking various NS internal state + whether this is a New3DS.
+
This outputs a value based on whether the system is running using New 3DS CPU speed and whether the application is registered with APT (see [[APT:Enable]]).
  
The normal output seems to be value 0x2. Forcing this value to 0x1 causes New3DS HID usage(via ir:USER) in Smash Bros to be disabled.  
+
Using New 3DS CPU speed (i.e. modes 2 and 4) seems to be known as running as an "ext application" (probably for "extended application").
  
Values 0x2 or 0x4 seem to indicate that it's running as an "ext application"(?)
+
==Application Running Mode==
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Value
 +
!  Description
 +
|-
 +
| 0
 +
| No application is running
 +
|-
 +
| 1
 +
| Old 3DS CPU speed, registered with APT
 +
|-
 +
| 2
 +
| New 3DS CPU speed, registered with APT
 +
|-
 +
| 3
 +
| Old 3DS CPU speed, not registered with APT
 +
|-
 +
| 4
 +
| New 3DS CPU speed, not registered with APT
 +
|}

Latest revision as of 09:21, 23 July 2023

Request[edit]

Index Word Description
0 Header code [0x01030000]

Response[edit]

Index Word Description
0 Header code
1 Result code
2 u8, Application Running Mode

Description[edit]

This outputs a value based on whether the system is running using New 3DS CPU speed and whether the application is registered with APT (see APT:Enable).

Using New 3DS CPU speed (i.e. modes 2 and 4) seems to be known as running as an "ext application" (probably for "extended application").

Application Running Mode[edit]

Value Description
0 No application is running
1 Old 3DS CPU speed, registered with APT
2 New 3DS CPU speed, registered with APT
3 Old 3DS CPU speed, not registered with APT
4 New 3DS CPU speed, not registered with APT