Files
AnyPS5/docs/dev/debt/libSceNotification.md
T
primesoul-web 0c13774240 fix(libSceNotification): declare the exports once in the public header
Consolidate the four notification exports into the one public header
include/Api.hpp, per review: the canonical sceNotificationSend declaration
is updated to the implemented (int, std::uint8_t, std::uint8_t*) signature,
the duplicate declarations are removed with Notification.hpp, and the
implementation and the test include that public header, which the library
umbrella already reaches. The debt entry now states that whether the
0x1800-byte message limit and the 0x20-byte id limit include the
terminating NUL is not established and that AnyPS5 counts characters
before the NUL, including the one-past-the-end read of a buffer with no
terminator.
2026-11-02 19:05:33 +00:00

1.9 KiB

libSceNotification technical debt

Silent stubs

  • sceNotificationHidePsButtonPersistentBanner (libSceNotification) - AnyPS5 has no system UI, so no persistent banner is ever shown and there is nothing to hide; the call returns without effect. When a system UI appears, this must clear the banner sceNotificationShowPsButtonPersistentBanner put up.

Functional

  • the send calls and the banner (libSceNotification) - the gap: nothing is displayed, because AnyPS5 has no notification service or system UI. Signatures, the 0x1800-byte message limit, the 0x20-byte id limit and the 0x81980001 answer for a bad or empty message follow SharpProspero; a null or empty id or JSON body is answered with the same code, as that summary names no per-argument code, a null banner configuration is the documented empty configuration, and the success return follows the platform's 0 convention, which the summary does not spell out. The send calls and the banner show log what they would show, as the kernel request path sceKernelSendNotificationRequest does. When a notification service appears, these must hand it the message.
  • the NUL accounting of the limits (libSceNotification) - whether the 0x1800-byte message limit and the 0x20-byte id limit include the terminating NUL is not established: the SharpProspero summary says only "up to" that many bytes. AnyPS5 counts characters before the NUL, so the full 0x1800 characters plus the NUL are accepted (memchr over MessageCapacity + 1 bytes); this also means a 0x1800-byte buffer with no terminator is read one byte past its end before it is refused, and the id checks account for the 0x20 limit the same way.