APT:GetApplicationRunningMode: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
Steveice10 (talk | contribs)
Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x01030000] |} =Response= {| class="wikitable" border="1" |- ! Index Word !..."
 
Steveice10 (talk | contribs)
mNo edit summary
Line 22: Line 22:
|-
|-
| 2
| 2
| u8, Application Running Mode ()
| u8, Application Running Mode (?)
|}
|}



Revision as of 09:24, 23 July 2023

Request

Index Word Description
0 Header code [0x01030000]

Response

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

Description

This writes an output u8 to cmdreply[2], the value is determined by checking various NS internal state + whether this is a New3DS.

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.

Values 0x2 or 0x4 seem to indicate that it's running as an "ext application"(?)