APT:GetApplicationRunningMode

Revision as of 08:23, 23 July 2023 by 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 !...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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"(?)