Difference between revisions of "ACTU:GetCommonInfo"

From 3dbrew
Jump to navigation Jump to search
m (Add more docs for block IDs)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
=Request=
 
=Request=
{| class="wikitable" border="1"
+
{{IPC/Request}}
|-
+
{{IPC/RequestHeader|0x0005|2|2}}
!  Index Word
+
{{IPC/RequestEntry|Output buffer size}}
!  Description
+
{{IPC/RequestEntry|Common data type}}
|-
+
{{IPC/MapPointerW|Output buffer}}
| 0
+
{{IPC/RequestEnd}}
| Header code [0x00050082]
 
|-
 
| 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|0x0005|1|2}}
!  Description
+
{{IPC/RequestEntry|Result code}}
|-
+
{{IPC/MapPointerW|Output buffer}}
| 0
+
{{IPC/RequestEnd}}
| Header code
 
|-
 
| 1
 
| Result code
 
|}
 
  
 
=Description=
 
=Description=
This returns common account info from common.dat
+
Returns common account information, not specific to any account.
  
=DataBlocks=
+
See [[ACT_Services#DataBlocks|DataBlocks]] for possible data types.
 
 
{| class="wikitable" border="1"
 
|-
 
!  BlkID
 
!  Size
 
!  Description
 
|-
 
| 0x1
 
| 0x1
 
| Total number of accounts
 
|-
 
| 0x2
 
| 0x1
 
| Default account
 
|-
 
| 0x3
 
| 0x1
 
| Default account?
 
|-
 
| 0x4
 
| 0x8
 
| ?
 
|-
 
| 0x5
 
| ?
 
| ?
 
|-
 
| 0x6
 
| 0x8
 
| CommonTransferableIdBase
 
|-
 
| 0x29
 
| 0x24
 
| struct{char[0x21] DefaultNnasSubDomain?; char[0x3] DefaultNnasNfsEnv;}
 
|-
 
| 0x2A
 
| 0x8
 
| ?
 
|}
 

Latest revision as of 18:59, 12 January 2025

Request[edit]

Index Word Description
0
Header 0x00050082 Cmd 0x0005 Param 2 Xlat 2
1 Output buffer size
2 Common data type
3 Descriptor for mapping a write-only buffer in the target process
4 Output buffer

Response[edit]

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

Description[edit]

Returns common account information, not specific to any account.

See DataBlocks for possible data types.