feat(libSceNpWebApi2): implement sceNpWebApi2PushEventAbortHandle #4375
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4375"
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 milescoviello on 2026-10-12T08:12:57Z.
What
Fixes #4174. Carries @screamm's fix branch from that issue (
screamm:feat/npwebapi2-push-event-abort,2d9c2e45), keeping the commit and its authorship as is, as the issue invites. It is cherry-picked onto currentmain; besides the commit's own code, only its TechnicalDebt edit changed, to follow the move to one file per library (#4411): the stub entry leavesdocs/dev/debt/libSceNpWebApi2.md's Unknown function info and the new entry goes under that file's Functional section.sceNpWebApi2PushEventAbortHandle(NID1OLgvahaSco) threwNotImplemented; Planet Coaster (PPSA01736) imports it (import evidence from merged #3399). From the issue:np_web_api2_internal.cpp(abortPushEventHandle),np_web_api2_context.cppandnp_web_api2_push_event.cppate0a46675:CreateHandlereturnsLIB_CONTEXT_NOT_FOUND(0x80553404) for an unknown context and registers the handle;AbortHandlereturnsLIB_CONTEXT_NOT_FOUND/HANDLE_NOT_FOUND(0x8055340D) for an unknown context or handle and otherwise marks the handle aborted (idempotent, 0);CreateFilteron an aborted handle returnsABORTED(0x80553409);DeleteHandlevalidates the same way and removes the handle;Terminatedrops the context's handles. In shadPS4 the only effect of abort is thatABORTEDresult, so registered callbacks are left alone; handle timeouts are not modelled. The codes are PS4 numbering, unverified on PS5 (TechnicalDebt). Note for reviewers:CreateHandle,DeleteHandleandCreateFilterpreviously accepted any id and now return these errors; the siblingGetMemoryPoolStatsstill throws for an unknown context, and the existingSCE_NP_WEBAPI2_ERROR_UNAVAILABLE(0x80553406) is shadPS4'sREQUEST_NOT_FOUND, left unchanged.guest_np_web_api2covers two handles (abort one twice, filter creationABORTEDon it and unaffected on the other), the wrong-context, unknown-handle and unknown-context codes, delete then abort/delete again, and abort afterTerminate.Tested
main1acfa7f7.guest_np_web_api2passes and fails withmain'sExport.cpp, and all 310guest_*tests pass.guest_np_web_api23/3 plus the full suite results listed there.tools/check_conventions.py --base upstream/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.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-12T08:27:57Z.
Progress report (
1acfa7f→2efa438)📈 System libraries: 86.39% (+0.03%, +1 implemented functions)
✅ 1 implemented
sceNpWebApi2PushEventAbortHandleImported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T11:51:17Z.
Windows test: head
13d9cdd04merged onto currentmain3d8ffeb27(clean merge, no conflicts). Windows 10, MinGW GCC (WinLibs), Ninja Release,-j4: full build 0 errors; ctest with the filterguest_np_web_api2: guest_np_web_api2 passed (1 test(s), 0 failed);python tools/check_conventions.py --base upstream/mainpassed. I did not run the new tests againstmainwithout the change.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T23:28:14Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/tests/GuestNpWebApi2.cppL17docs/dev/debt/libSceNpWebApi2.mdL5-6Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T00:21:33Z.
Closing: PPSA01736 imports
sceNpWebApi2PushEventAbortHandlebut #4174 says the call has not been seen executing, and the commit also changes whatCreateHandle,DeleteHandleandCreateFilterreturn for every title, from PS4 codes. #4188 carries the same commit. Reopen with the log line where a title stops at it on main.Pull request closed