ACTU:Initialize

From 3dbrew
Jump to navigation Jump to search

Request[edit]

Index Word Description
0
Header 0x00010084 Cmd 0x0001 Param 2 Xlat 4
1 SDK Version
2 u32, Shared memory size (optional)
3 Descriptor for process ID
4 Placeholder for process ID
5 Descriptor for copying 1 handle
6 Handle to shared memory (optional)

Response[edit]

Index Word Description
0
Header 0x00010040 Cmd 0x0001 Param 1 Xlat 0
1 Result code

Description[edit]

Initializes the current session.

The process ID is used to obtain the Title ID and Remaster Version of the caller.

An optional block of extra memory can be shared with the act service. The caller must create a memory block and specify its size in this request. If used, the act service will map the memory block into its own address space and use it as an extra heap. This extra memory is required for certain commands.