Difference between revisions of "NEWSS:GetNewsDBHeader"

From 3dbrew
Jump to navigation Jump to search
 
Line 8: Line 8:
 
| Header code [0x000A0042]
 
| Header code [0x000A0042]
 
|-
 
|-
| 2
+
| 1
 
| Size
 
| Size
 
|-
 
|-
| 3
+
| 2
 
| (Size<<4)  <nowiki>|</nowiki> 12
 
| (Size<<4)  <nowiki>|</nowiki> 12
 
|-
 
|-
| 4
+
| 3
 
| Output buffer ptr
 
| Output buffer ptr
 
|}
 
|}

Latest revision as of 21:17, 12 December 2014

Request[edit]

Index Word Description
0 Header code [0x000A0042]
1 Size
2 (Size<<4) | 12
3 Output buffer ptr

Response[edit]

Index Word Description
0 Header code
1 Resultcode
2 Actual copied size.

Description[edit]

This copies the header from the start of the news.db save-file in news-module memory, to the output buffer. The max size is 0x10-bytes.