NEWSS:AddNotification: Difference between revisions

Steveice10 (talk | contribs)
m Add maximum sizes for messages and image data.
DaniElectra (talk | contribs)
 
(4 intermediate revisions by the same user not shown)
Line 57: Line 57:
| 0x3
| 0x3
| 0x1
| 0x1
| u8 flag: 0 = non-SpotPass notification, 1 = SpotPass notification.
| u8 flag: 0 = non-SpotPass notification, 1 = SpotPass notification (zero for system notifications)
|-
|-
| 0x4
| 0x4
Line 64: Line 64:
|-
|-
| 0x5
| 0x5
| 0x3
| 0x1
| unknown
| u8 flag: 0 = message doesn't have a browser link, 1 = message has a browser link
|-
| 0x6
| 0x1
| u8 flag: unknown
|-
| 0x7
| 0x1
| padding?
|-
|-
| 0x8
| 0x8
Line 72: Line 80:
|-
|-
| 0x10
| 0x10
| 0x8
| 0x4
| unknown
| u32 nsDataId: set by the sysmodule when handling BOSS notifications
|-
| 0x14
| 0x4
| u32 version: set by the sysmodule when handling BOSS notifications
|-
|-
| 0x18
| 0x18
Line 81: Line 93:
| 0x20
| 0x20
| 0x8
| 0x8
| unknown
| padding?
|-
|-
| 0x28
| 0x28
Line 97: Line 109:


=Message=
=Message=
This is an UTF-16 string for the notification message text, this buffer includes the null-terminator. The maximum size in bytes is 0x1780.
This is an UTF-16 string for the notification message text, this buffer includes the null-terminator. When the message has the browser link flag set, the URL it's located after the null-terminator of the message text as a UTF-8 string, also with null-termination. The maximum size in bytes is 0x1780.


=Image=
=Image=