Difference between revisions of "News Services"

From 3dbrew
Jump to navigation Jump to search
Line 60: Line 60:
 
| [[NEWSS:GetNotificationImage|GetNotificationImage]]
 
| [[NEWSS:GetNotificationImage|GetNotificationImage]]
 
|-
 
|-
| 0x000E....
+
| 0x000E0040
| ?
+
| [[NEWSS:SetInfoLEDPattern|SetInfoLEDPattern]]
 
|-
 
|-
| 0x000F....
+
| 0x000F0000
| ?
+
| SpotPass notifications related?
 
|-
 
|-
 
| 0x0010....
 
| 0x0010....

Revision as of 21:16, 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 AddNotification

This service only has one command.

News service "news:s"

Command Header Description
0x000100C6 AddNotification
0x0002.... Stubbed, only returns 0.
0x0003.... Stubbed, only returns 0.
0x00040000 ?
0x00050000 GetTotalNotifications
0x00060042 SetNewsDBHeader
0x00070082 SetNotificationHeader
0x00080082 SetNotificationMessage
0x00090082 SetNotificationImage
0x000A0042 GetNewsDBHeader
0x000B0082 GetNotificationHeader
0x000C0082 GetNotificationMessage
0x000D0082 GetNotificationImage
0x000E0040 SetInfoLEDPattern
0x000F0000 SpotPass notifications related?
0x0010.... ?
0x0011.... ?
0x0012.... ?
0x0013.... ?
0x0014.... ?

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, see below.
0x10 0x2BC0 (100 * 0x70) Array of headers for each notification.

Header

Offset Size Description
0x0 0x1 Must be 0x1.
0x1 0x1 Flags: bit0 is set by news-module when handling the AddNotification commands.
0x2 0xE Normally zero?

Errors

Error code Description
0xC8A12805 The notification header data for the specified notificationID is not set(the specified notification doesn't exist).