Libkernel geteventerror #2547

Closed
fidalgojoao wants to merge 2 commits from upstream-pr/2547 into main
fidalgojoao commented 2026-10-10 04:23:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fidalgojoao on 2026-10-10T04:23:59Z.


What

Implements sceKernelGetEventError in libkernel, replacing the NotImplemented_nid_no_patch stub. It returns the event's data field as the error number when EV_ERROR is set in the event's flags (the kqueue convention) and 0 otherwise. A null event throws, like the other event accessors in the same file.

Extends GuestEqueueEvents.cpp to cover the no-error case, the EV_ERROR case and null rejection.

Not verified on PS5 hardware: I assumed the function returns the raw error number from data, not an 0x8002xxxx SCE error code. Please correct this if it is wrong.

Tested

Windows 11, MinGW-w64 GCC 15.2.0, full build plus libs target. ctest: 573 tests, 0 failed, 3 skipped (video_out_flip_lifetime, video_out_flip_controls, guest_video_out_wqhd_detection_no_vulkan). The skipped tests also skip on an unmodified main on my machine. No title or homebrew tested.

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 (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4808662800 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2547). Originally posted by [fidalgojoao](https://github.com/fidalgojoao) on 2026-10-10T04:23:59Z. --- ### What Implements `sceKernelGetEventError` in libkernel, replacing the `NotImplemented_nid_no_patch` stub. It returns the event's `data` field as the error number when `EV_ERROR` is set in the event's flags (the kqueue convention) and 0 otherwise. A null event throws, like the other event accessors in the same file. Extends `GuestEqueueEvents.cpp` to cover the no-error case, the `EV_ERROR` case and null rejection. Not verified on PS5 hardware: I assumed the function returns the raw error number from `data`, not an `0x8002xxxx` SCE error code. Please correct this if it is wrong. ### Tested Windows 11, MinGW-w64 GCC 15.2.0, full build plus `libs` target. ctest: 573 tests, 0 failed, 3 skipped (`video_out_flip_lifetime`, `video_out_flip_controls`, `guest_video_out_wqhd_detection_no_vulkan`). The skipped tests also skip on an unmodified `main` on my machine. No title or homebrew tested. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [ ] 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](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [ ] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [ ] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [ ] New third-party code is a submodule built from source - [ ] Generic behaviour, not specific to one title - [ ] Depends on: none - [ ] AI-assisted: yes
github-actions[bot] commented 2026-10-10 04:24:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T04:24:09Z.


Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6093734448 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2547#issuecomment-6093734448). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T04:24:09Z. --- Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
fidalgojoao commented 2026-10-10 04:29:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fidalgojoao on 2026-10-10T04:29:15Z.


team, just realized there is already a duplicate:
https://github.com/boykopovar/AnyPS5/pull/2518

big apologies for this

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6093774116 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2547#issuecomment-6093774116). Originally posted by [fidalgojoao](https://github.com/fidalgojoao) on 2026-10-10T04:29:15Z. --- team, just realized there is already a duplicate: https://github.com/boykopovar/AnyPS5/pull/2518 big apologies for this

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!2547
No description provided.