Difference between revisions of "News Services"

From 3dbrew
Jump to navigation Jump to search
Line 10: Line 10:
 
|-
 
|-
 
| 0x000100C8
 
| 0x000100C8
|  
+
| [[NEWSU:AddNotification|AddNotification]]
 
|}
 
|}
  
Line 96: Line 96:
 
| 0x0
 
| 0x0
 
| 0x10
 
| 0x10
| Header, normally first byte is value 0x1 and the rest all-zero.
+
| Header, see below.
 
|-
 
|-
 
| 0x10
 
| 0x10
 
| 0x2BC0 (100 * 0x70)
 
| 0x2BC0 (100 * 0x70)
 
| Array of [[NEWSS:AddNotification|headers]] for each notification.
 
| Array of [[NEWSS:AddNotification|headers]] for each notification.
 +
|}
 +
 +
===Header===
 +
{| class="wikitable" border="1"
 +
|-
 +
!  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?
 
|}
 
|}
  
Line 110: Line 130:
 
|-
 
|-
 
| 0xC8A12805
 
| 0xC8A12805
| The notification header data for the specified notificationID is not set.
+
| The notification header data for the specified notificationID is not set(the specified notification doesn't exist).
 
|}
 
|}

Revision as of 09:51, 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.... ?
0x0003.... ?
0x0004.... ?
0x00050000 GetTotalNotifications
0x0006.... ?
0x00070082 SetNotificationHeader
0x0008.... ?
0x0009.... ?
0x000A0082 GetNewsDBHeader
0x000B0082 GetNotificationHeader
0x000C0082 GetNotificationMessage
0x000D0082 GetNotificationImage
0x000E.... ?
0x000F.... ?
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).