NEWSS:GetNewsDBHeader: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
No edit summary
 
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

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

Response

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

Description

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.