Difference between revisions of "ACTU:GetAccountDataBlock"

From 3dbrew
Jump to navigation Jump to search
(Move data blocks to main page of ACT)
 
(13 intermediate revisions by 7 users not shown)
Line 9: Line 9:
 
|-
 
|-
 
| 1
 
| 1
| Unknown, usually 0xFE?
+
| u8 Account slot (0xFE to use current account)
 
|-
 
|-
 
| 2
 
| 2
Line 15: Line 15:
 
|-
 
|-
 
| 3
 
| 3
| BlkID
+
| [[ACT_Services#DataBlocks|BlkID]]
 
|-
 
|-
 
| 4
 
| 4
Line 38: Line 38:
  
 
=Description=
 
=Description=
This returns NNID account info.
+
This returns NNID account info. This data usually comes from account.dat
  
=DataBlocks=
+
Also known as GetAccountInfo.
{| class="wikitable" border="1"
 
|-
 
!  BlkID
 
!  Size
 
!  Description
 
|-
 
| 0xB
 
| 0x3
 
| ASCII NUL-terminated country-name.
 
|-
 
| 0x8
 
| 0x11
 
| Nickname / Nintendo Network ID(unknown which one it is), exact string format unknown.
 
|-
 
| 0x19
 
| 0x8
 
| ?
 
|-
 
| 0x1E
 
| 0x41
 
| ASCII location for the timezone.
 
|-
 
| 0x2F
 
| 0x4
 
| Similar or identical to [[Config_Savegame#CountryInfo|cfg CountryInfo]]?
 
|}
 

Latest revision as of 23:22, 14 October 2023

Request[edit]

Index Word Description
0 Header code [0x000600C2]
1 u8 Account slot (0xFE to use current account)
2 Size
3 BlkID
4 (Size<<4) | 12
5 Output buffer ptr

Response[edit]

Index Word Description
0 Header code
1 Result code

Description[edit]

This returns NNID account info. This data usually comes from account.dat

Also known as GetAccountInfo.