ACTU:GetTransferableId

From 3dbrew
Revision as of 14:22, 20 January 2025 by TimmSkiller (talk | contribs) (Created page with "=Request= {{IPC/Request}} {{IPC/RequestHeader|0x0011|2|0}} {{IPC/RequestEntry|u8, salt value(?)}} {{IPC/RequestEntry|u8, Account slot}} {{IPC/RequestEnd}} =Response= {{IPC/Re...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Request[edit]

Index Word Description
0
Header 0x00110080 Cmd 0x0011 Param 2 Xlat 0
1 u8, salt value(?)
2 u8, Account slot

Response[edit]

Index Word Description
0
Header 0x001100C0 Cmd 0x0011 Param 3 Xlat 0
1 Result code
2-3 TransferableID

Description[edit]

Returns a TransferableID for the given account and salt(?) value. The output value is based on the TransferableIDBase of the specified account (see DataBlock 0x6). Internally, a complicated XOR and shifting algorithm is used to scramble bits and generate the output value.

The TransferableIDBase used depends on the input account slot:

Input Account slot Used TransferableIDBase
-1 (0xFF) Uses a common TransferableIDBase.
-2 (0xFE) Uses the TransferableIDBase of the currently loaded account.
values 1-8 Uses the TransferableIDBase of the specified account slot.