Difference between revisions of "APT:PrepareToStartApplication"

From 3dbrew
Jump to navigation Jump to search
Line 27: Line 27:
 
| Result code
 
| Result code
 
|}
 
|}
 +
 +
=Description=
 +
When the input title-info programID is zero, NS will load the actual programID via [[AMNet:GetTitleIDList]]. After doing some checks with the programID, NS will then set a NS state flag to value 1, then set the programID for AppID 0x300(application) to the input programID(or the one from GetTitleIDList). A mediatype field in NS state is also set to the input mediatype value(other state fields are set at this point as well).

Revision as of 19:01, 3 October 2013

Request

Index Word Description
0 Header code [0x00150140]
1-4 0x10-byte title-info struct
5 u8 flag, usually zero. When zero, NS writes a title-info struct with programID=~0 and mediatype=NAND to the FIRM parameters structure.

Response

Index Word Description
0 Header code
1 Result code

Description

When the input title-info programID is zero, NS will load the actual programID via AMNet:GetTitleIDList. After doing some checks with the programID, NS will then set a NS state flag to value 1, then set the programID for AppID 0x300(application) to the input programID(or the one from GetTitleIDList). A mediatype field in NS state is also set to the input mediatype value(other state fields are set at this point as well).