feat(libSceNpWebApi2): implement push event abort handles #5292

Closed
MarcZX10 wants to merge 1 commit from upstream-pr/5292 into main
MarcZX10 commented 2026-10-13 16:38:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T16:38:17Z.


What

Fixes #4174. Tracks push event handles under their library context. Aborting a valid handle is idempotent, and later filter creation on that handle returns ABORTED; deleting a handle or terminating its context removes it. Unknown contexts and handles return the corresponding error codes.

These signatures, state transitions and error codes follow the PS4 shadPS4 reference and remain unverified on PS5 hardware. The change leaves callbacks already registered on an aborted handle untouched and does not model handle timeouts.

The implementation commit retains screamm as author and its original coauthor metadata.

Tested

  • Debian 12, Linux x86_64, GCC 12.2: guest_np_web_api2 passed (1/1), including per-context handles, repeated abort, aborted filter creation, invalid contexts/handles, deletion and termination.
  • Conventions check and git diff --check passed.
  • The issue report includes separate Windows testing; no Windows local run.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; silent stubs are listed under technical debt
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4846411194 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5292). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T16:38:17Z. --- ### What Fixes #4174. Tracks push event handles under their library context. Aborting a valid handle is idempotent, and later filter creation on that handle returns `ABORTED`; deleting a handle or terminating its context removes it. Unknown contexts and handles return the corresponding error codes. These signatures, state transitions and error codes follow the PS4 shadPS4 reference and remain unverified on PS5 hardware. The change leaves callbacks already registered on an aborted handle untouched and does not model handle timeouts. The implementation commit retains screamm as author and its original coauthor metadata. ### Tested - Debian 12, Linux x86_64, GCC 12.2: `guest_np_web_api2` passed (1/1), including per-context handles, repeated abort, aborted filter creation, invalid contexts/handles, deletion and termination. - Conventions check and `git diff --check` passed. - The issue report includes separate Windows testing; no Windows local run. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; silent stubs are listed under technical debt - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-13 16:39:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T16:39:00Z.


Progress report (0214069 → ccddd34)

📈 System libraries: 88.18% (+0.03%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceNpWebApi2 sceNpWebApi2PushEventAbortHandle
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6150422499 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5292#issuecomment-6150422499). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-13T16:39:00Z. --- <!-- progress-report --> ### Progress report (0214069 → ccddd34) 📈 **System libraries**: 88.18% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceNpWebApi2 | `sceNpWebApi2PushEventAbortHandle` | </details>
oneandonlydean commented 2026-10-14 04:42:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T04:42:08Z.


Closing: no title is known to reach this. With the queue at 480+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6161057709 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5292#issuecomment-6161057709). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-14T04:42:08Z. --- Closing: no title is known to reach this. With the queue at 480+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!5292
No description provided.