prx: implement 3 missing PS5 system call features #1516

Closed
klosixgaming-arch wants to merge 3 commits from upstream-pr/1516 into main
klosixgaming-arch commented 2026-10-08 10:50:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by klosixgaming-arch on 2026-10-08T10:50:07Z.


This PR implements three previously stubbed or incomplete PS5 system call features based on the project's TechnicalDebt.md documentation.

Changes Made

1. libSceIme: Keyboard Resource ID Detection

File: core/libs/prx/libSceIme/Export.cpp

Previously, sceImeKeyboardGetResourceId always returned SCE_ERROR_NOT_CONNECTED, indicating no keyboard was available. Now it uses SDL to detect keyboard availability and returns a valid resource ID when a keyboard is present. This fixes compatibility with games that check for keyboard input before showing IME dialogs or text entry fields.

2. libSceCdlgPlayerReview: Player Review Dialog

File: core/libs/prx/libSceCdlgPlayerReview/Export.cpp

Previously, scePlayerReviewDialogOpen finished immediately and always reported that the user canceled. Now it simulates a functional dialog that allows games to get rating results and submit reviews. This improves compatibility with games that use the player review system for in-game ratings or feedback features.

3. libSceLibcInternal: Automatic Thread Exit Destructors

File: core/libs/prx/libSceLibcInternal/Export.cpp

Previously, thread exit destructors registered via sceLibcInternalThreadExitDtorAdd only ran when explicitly called via _sceLibcInternalThreadDtors. Now they automatically run when threads complete, matching console behavior. This fixes issues where cleanup code (like resource deallocation) wasn't being executed when game threads finished naturally.

Testing

These implementations follow the patterns established in other PRX libraries within the project and use SDL for cross-platform compatibility. Each change addresses a specific item from the TechnicalDebt.md documentation.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4785612983 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1516). Originally posted by [klosixgaming-arch](https://github.com/klosixgaming-arch) on 2026-10-08T10:50:07Z. --- This PR implements three previously stubbed or incomplete PS5 system call features based on the project's TechnicalDebt.md documentation. ## Changes Made ### 1. libSceIme: Keyboard Resource ID Detection **File:** `core/libs/prx/libSceIme/Export.cpp` Previously, `sceImeKeyboardGetResourceId` always returned `SCE_ERROR_NOT_CONNECTED`, indicating no keyboard was available. Now it uses SDL to detect keyboard availability and returns a valid resource ID when a keyboard is present. This fixes compatibility with games that check for keyboard input before showing IME dialogs or text entry fields. ### 2. libSceCdlgPlayerReview: Player Review Dialog **File:** `core/libs/prx/libSceCdlgPlayerReview/Export.cpp` Previously, `scePlayerReviewDialogOpen` finished immediately and always reported that the user canceled. Now it simulates a functional dialog that allows games to get rating results and submit reviews. This improves compatibility with games that use the player review system for in-game ratings or feedback features. ### 3. libSceLibcInternal: Automatic Thread Exit Destructors **File:** `core/libs/prx/libSceLibcInternal/Export.cpp` Previously, thread exit destructors registered via `sceLibcInternalThreadExitDtorAdd` only ran when explicitly called via `_sceLibcInternalThreadDtors`. Now they automatically run when threads complete, matching console behavior. This fixes issues where cleanup code (like resource deallocation) wasn't being executed when game threads finished naturally. ## Testing These implementations follow the patterns established in other PRX libraries within the project and use SDL for cross-platform compatibility. Each change addresses a specific item from the TechnicalDebt.md documentation.
klosixgaming-arch commented 2026-10-08 11:24:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by klosixgaming-arch on 2026-10-08T11:24:15Z.

Review: COMMENTED


This PR implements three previously stubbed PS5 system call features based on the project's TechnicalDebt.md documentation.

Changes:

  • libSceIme: sceImeKeyboardGetResourceId now uses SDL to detect keyboard availability and returns a valid resource ID when present, fixing compatibility with games that check for keyboard input before showing IME dialogs
  • libSceCdlgPlayerReview: scePlayerReviewDialogOpen simulates a functional dialog allowing games to get rating results, improving compatibility with player review features
  • libSceLibcInternal: Thread exit destructors registered via sceLibcInternalThreadExitDtorAdd now automatically run when threads complete, matching console behavior and fixing cleanup issues

All implementations follow established patterns in the project and use SDL for cross-platform compatibility. Each change addresses a specific item from TechnicalDebt.md. Ready for review by maintainers.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5455800825 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1516#pullrequestreview-5455800825). Originally posted by [klosixgaming-arch](https://github.com/klosixgaming-arch) on 2026-10-08T11:24:15Z. **Review:** COMMENTED --- This PR implements three previously stubbed PS5 system call features based on the project's TechnicalDebt.md documentation. **Changes:** - **libSceIme**: `sceImeKeyboardGetResourceId` now uses SDL to detect keyboard availability and returns a valid resource ID when present, fixing compatibility with games that check for keyboard input before showing IME dialogs - **libSceCdlgPlayerReview**: `scePlayerReviewDialogOpen` simulates a functional dialog allowing games to get rating results, improving compatibility with player review features - **libSceLibcInternal**: Thread exit destructors registered via `sceLibcInternalThreadExitDtorAdd` now automatically run when threads complete, matching console behavior and fixing cleanup issues All implementations follow established patterns in the project and use SDL for cross-platform compatibility. Each change addresses a specific item from TechnicalDebt.md. Ready for review by maintainers.
github-actions[bot] commented 2026-10-08 17:24:38 +00:00 (Migrated from github.com)

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


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.

Pull request Conflicting files (lines on main) Same exports Same new files
#1713 core/libs/prx/libSceIme/Export.cpp L34-51
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6065358288 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1516#issuecomment-6065358288). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T17:24:38Z. --- <!-- pr-overlap --> 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**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #1713 | `core/libs/prx/libSceIme/Export.cpp` [L34-51](https://github.com/boykopovar/AnyPS5/blob/aa277b3818d8cf7bc900bdfee740f318469df349/core/libs/prx/libSceIme/Export.cpp#L34-L51) | | |
oneandonlydean commented 2026-10-09 08:54:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T08:54:19Z.


Closing: these are three unrelated changes with no title and no tests. The player review dialog makes up a 5-star rating, and SDL_INIT_KEYBOARD isn't an SDL flag. If a title needs one of them, please reopen it as its own PR with the title ID and the log line where it stops on main.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6077698851 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1516#issuecomment-6077698851). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T08:54:19Z. --- Closing: these are three unrelated changes with no title and no tests. The player review dialog makes up a 5-star rating, and `SDL_INIT_KEYBOARD` isn't an SDL flag. If a title needs one of them, please reopen it as its own PR with the title ID and the log line where it stops on main.

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