Difference between revisions of "NEWSS:GetNotificationMessage"

From 3dbrew
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 12: Line 12:
 
|-
 
|-
 
| 2
 
| 2
| Max buffer size
+
| Size
 
|-
 
|-
 
| 3
 
| 3
| (MaxSize<<4)  <nowiki>|</nowiki> 12
+
| (Size<<4)  <nowiki>|</nowiki> 12
 
|-
 
|-
 
| 4
 
| 4
| Output buffer ptr
+
| Buffer ptr
 
|}
 
|}
  
Line 38: Line 38:
  
 
=Description=
 
=Description=
This writes the [[NEWSS:AddNotification|message]] data for the specified notification, to the output buffer.
+
This reads the news-module .txt save-file for the specified notificationID, into the output buffer.
 +
 
 +
The notifications applet uses hard-coded size 0x1780 for this.

Latest revision as of 21:59, 12 December 2014

Request[edit]

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

Response[edit]

Index Word Description
0 Header code
1 Resultcode
2 Actual read size from the .txt file.

Description[edit]

This reads the news-module .txt save-file for the specified notificationID, into the output buffer.

The notifications applet uses hard-coded size 0x1780 for this.