ACTU:GetAccountDataBlock: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
Mailwl (talk | contribs)
TimmSkiller (talk | contribs)
No edit summary
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
=Request=
=Request=
{| class="wikitable" border="1"
{{IPC/Request}}
|-
{{IPC/RequestHeader|0x0006|3|2}}
!  Index Word
{{IPC/RequestEntry|u8, Account slot (0xFE for default)}}
!  Description
{{IPC/RequestEntry|Output buffer size}}
|-
{{IPC/RequestEntry|Account data type}}
| 0
{{IPC/MapPointerW|Output buffer}}
| Header code [0x000600C2]
{{IPC/RequestEnd}}
|-
| 1
| Unknown, usually 0xFE?
|-
| 2
| Size
|-
| 3
| BlkID
|-
| 4
| (Size<<4)  <nowiki>|</nowiki> 12
|-
| 5
| Output buffer ptr
|}


=Response=
=Response=
{| class="wikitable" border="1"
{{IPC/Request}}
|-
{{#vardefine:ipc_offset|0}}
!  Index Word
{{IPC/RequestHeader|0x0006|1|2}}
!  Description
{{IPC/RequestEntry|Result code}}
|-
{{IPC/MapPointerW|Output buffer}}
| 0
{{IPC/RequestEnd}}
| Header code
|-
| 1
| Result code
|}


=Description=
=Description=
This returns NNID account info.
Returns information associated to the account specified by the account slot.


=DataBlocks=
See [[ACT_Services#DataBlocks|DataBlocks]] for possible data types.
{| class="wikitable" border="1"
|-
!  BlkID
!  Size
!  Description
|-
| 0x8
| 0x11
| ASCII NUL-terminated Nintendo Network ID
|-
| 0xB
| 0x3
| ASCII NUL-terminated Country Name
|-
| 0xC
| 0x4
| Principal ID
|-
| 0x13
| 0x1
| Gender
|-
| 0x19
| 0x8
| UTC offset
|-
| 0x1E
| 0x41
| ASCII Time Zone Location
|-
| 0x2C
| 0x2
| Age
|-
| 0x2F
| 0x4
| [[Config_Savegame#CountryInfo|CountryInfo]]
|}

Latest revision as of 19:03, 12 January 2025

Request

Index Word Description
0
Header 0x000600C2 Cmd 0x0006 Param 3 Xlat 2
1 u8, Account slot (0xFE for default)
2 Output buffer size
3 Account data type
4 Descriptor for mapping a write-only buffer in the target process
5 Output buffer

Response

Index Word Description
0
Header 0x00060042 Cmd 0x0006 Param 1 Xlat 2
1 Result code
2 Descriptor for mapping a write-only buffer in the target process
3 Output buffer

Description

Returns information associated to the account specified by the account slot.

See DataBlocks for possible data types.