feat(libSceNotification): implement the notification exports #8207
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8207"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by adhimiw on 2026-10-20T03:13:51Z.
What
Implements the four
libSceNotificationexports, which all threwNotImplemented_nid_no_patch(__func__)before:sceNotificationSendandsceNotificationSendByIdbuild the console's kernel notification request — a 3120-byte block with the type at offset 0 and a terminated message at offset 45 — and pass it tosceKernelSendNotificationRequest, which the project already implements inlibkernel. The host therefore reports a notification exactly the way the kernel path already does, instead of throwing.sceNotificationShowPsButtonPersistentBannerreports the banner's parameters the same way and keeps them untilsceNotificationHidePsButtonPersistentBannerclears them. The console draws the banner next to the PS button; the host has no banner.A message that is not terminated within the request's 1024-byte message field throws, as do a null message, id, payload or banner parameter.
The library had no
CMakeLists.txtand was built fromExport.cppalone; it now has one, so aguest_notificationtest can be registered. The test covers the calls, the longest message that fits and the rejected inputs.docs/dev/debt/libSceNotification.mdrecords that the host reports the notification instead of showing the console's toast, that the persistent banner has no host equivalent, and that the parameter meanings are unknown, so every notification is reported as a text notification.Tested
Linux (Omarchy, kernel 7.2.8), GCC 16.2.1, CMake 4.4.4:
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ONconfigured and the full build compiled and linked;ctest -j4ran 1648 tests, all passed, including the newguest_notification.python3 tools/check_conventions.py --base upstream/mainpasses.python3 tools/pr_overlap.py --branch feat/libSceNotification-implementreports no overlap with open pull requests, checked after the branch was pushed. The library and the test were also cross-compiled with MinGW-w64 GCC 16.2.0 and the project's-fno-asynchronous-unwind-tablessetting, and the patchedlibSceNotification.prxwas read back: its undefined import of the kernel notification request is the same NID thatlibkernel.prxexports, so the loader binds them.Not tested: a title, a console, the Windows build.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file (none added).mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T03:14:08Z.
Thank you for your contribution! Authors with no pull requests merged into
maincan have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.Pull request closed