APT:GetApplicationRunningMode

From 3dbrew
Revision as of 09:24, 23 July 2023 by Steveice10 (talk | contribs)
Jump to navigation Jump to search

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