APT:Initialize: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
Steveice10 (talk | contribs)
Steveice10 (talk | contribs)
Line 31: Line 31:
|-
|-
| 3
| 3
| Notification event handle; should call [[APTU:GetSignalType|APTU:GetSignalType]] when triggered
| Notification event handle; should call [[APT:GetSignalType]] when triggered
|-
|-
| 4
| 4

Revision as of 22:22, 21 November 2015

Request

Index Word Description
0 Header code [0x00020080]
1 AppID
2 APT Attribute Flags (bits0-2 = App Type, bit5 = ?)

Response

Index Word Description
0 Header code
1 Result code
2 Value 0x04000000.
3 Notification event handle; should call APT:GetSignalType when triggered
4 Another event handle; triggered at start of execution and when returning to app from home menu

Description

Flags & 7 must not be larger than 6, otherwise NS calls svcBreak. Flags bitmask 0x20000000 must not be set when flags & 7 == 2 and using this command via APT:U, otherwise NS calls svcBreak.