CECDU:OpenAndRead: Difference between revisions

Guiand (talk | contribs)
Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x00120104] |- | 1 | buffer size (unused) |- | 2 | CEC ID? |- | 3 | data type |..."
 
Wwylele (talk | contribs)
Use new template
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
=Request=
=Request=
{| class="wikitable" border="1"
{{IPC/Request}}
|-
{{#vardefine:ipc_offset|0}}
!  Index Word
{{IPC/RequestEntry|Header code [0x00120104]}}
!  Description
{{IPC/RequestEntry|buffer size (unused)}}
|-
{{IPC/RequestEntry|NCCH Program ID}}
| 0
{{IPC/RequestEntry|[[CECD_Services#CecDataPathType|Path type]]}}
| Header code [0x00120104]
{{IPC/RequestEntry|file open flag?}}
|-
{{IPC/ProcessID}}
| 1
{{IPC/MapPointerW|buffer address}}
| buffer size (unused)
{{IPC/RequestEnd}}
|-
| 2
| CEC ID?
|-
| 3
| data type
|-
| 4
| ?
|-
| 5
| 0x20
|-
| 7
| (buffer size << 4) <nowiki>|</nowiki> 0xC
|-
| 8
| buffer
|}


=Response=
=Response=
{| class="wikitable" border="1"
{{IPC/Request}}
|-
{{#vardefine:ipc_offset|0}}
!  Index Word
{{IPC/RequestEntry|Header code [0x00120082]}}
!  Description
{{IPC/RequestEntry|Result code}}
|-
{{IPC/RequestEntry|Total bytes read}}
| 0
{{IPC/MapPointerW|buffer address}}
| Header code
{{IPC/RequestEnd}}
|-
| 1
| Result code
|-
| 2
| Total bytes read
|-
|}
 
=Notes=
This reads to the buffer some data stored in "data:/CEC/<file>" (where "data:/" is mapped to the SystemSaveData archive).
<file> is determined by the "data type" argument.