Repository navigation
fix(libkernel): sceKernelGetEventError - #3396
fidalgojoao wants to merge 3 commits into
Conversation
Progress report (946ffa0 → 8c354e7)📈 System libraries: 85.47% (+0.03%, +1 implemented functions) ✅ 1 implemented
|
|
Ready to merge from my side, but the PR description fails the conventions check:
Please fill those template lines in (only you can answer AI-assisted); it merges once they pass. |
|
Hello @adriadam10 ! Done now, sorry for this mistake |
|
Cross-reference: #3638 implements the same export ( CONTRIBUTING.md asks authors to "check that no open pull request already implements the same functions" before starting — both PRs are open, so flagging for the maintainers. The limitation this creates: only one of the two can be merged; the other gets closed as duplicate. Context for the choice (independent pre-review, Linux — CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
If it helps, rebasing onto #3638 (or closing one of them) would clear it; the choice is the maintainers'. |
|
Closing as a duplicate: #3638 implements the same export with the same behaviour ( Thanks for the contribution. If #3638 doesn't land, feel free to reopen rebased on |
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
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)