Difference between revisions of "NEWSS:SetNewsDBHeader"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x00060042] |- | 2 | Size |- | 3 | (Size<<4) <nowiki>|</nowiki> 12 |- | 4 | Buffe...")
 
 
Line 8: Line 8:
 
| Header code [0x00060042]
 
| Header code [0x00060042]
 
|-
 
|-
| 2
+
| 1
 
| Size
 
| Size
 
|-
 
|-
| 3
+
| 2
 
| (Size<<4)  <nowiki>|</nowiki> 12
 
| (Size<<4)  <nowiki>|</nowiki> 12
 
|-
 
|-
| 4
+
| 3
 
| Buffer ptr
 
| Buffer ptr
 
|}
 
|}

Latest revision as of 20:17, 12 December 2014

Request[edit]

Index Word Description
0 Header code [0x00060042]
1 Size
2 (Size<<4) | 12
3 Buffer ptr

Response[edit]

Index Word Description
0 Header code
1 Resultcode

Description[edit]

This copies the input buffer to the header at the start of the news.db save-file in news-module memory, then writes the updated news.db to savedata. The max size is 0x10-bytes.