Difference between revisions of "NEWSS:GetNewsDBHeader"

From 3dbrew
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
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
 
|}
 
|}
Line 35: Line 35:
  
 
=Description=
 
=Description=
This copies the header from the start of the news.db save-file in news-module memory, to the output buffer.
+
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.

Latest revision as of 20: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.