Difference between revisions of "News Services"

From 3dbrew
Jump to navigation Jump to search
Line 1: Line 1:
 
This system module handles the system notifications.
 
This system module handles the system notifications.
 +
 +
The maximum number of notifications that can be stored/handled is 100, hence the intended range for notificationIDs is 0-99.
  
 
=News service <nowiki>"news:u"</nowiki>=
 
=News service <nowiki>"news:u"</nowiki>=

Revision as of 06:37, 12 December 2014

This system module handles the system notifications.

The maximum number of notifications that can be stored/handled is 100, hence the intended range for notificationIDs is 0-99.

News service "news:u"

Command Header Description
0x000100C8

This service only has one command.

News service "news:s"

Command Header Description
0x000100C6 AddNotification
0x00050000 GetTotalNotifications
0x00070082 SetNotificationHeader
0x000B0082 GetNotificationHeader
0x000C0082 GetNotificationMessage
0x000D0082 GetNotificationImage

News module savedata

  • "news.db": This is the main save-file, the filesize is fixed to 0x2BD0-bytes.
  • "newsXXX.txt" This is the message data for this notification, where XXX is the decimal notification-index in the below headers-array.
  • "newsXXX.mpo" This is the MPO data for this notification if any, where XXX is the decimal notification-index in the below headers-array.

news.db

Offset Size Description
0x0 0x10 Header, normally first byte is value 0x1 and the rest all-zero.
0x10 0x2BC0 (100 * 0x70) Array of headers for each notification.