feat(libScePlayGo): fix error codes, implement the language mask and to-do list #238

Merged
adriadam10 merged 2 commits from upstream-pr/238 into main 2026-10-01 18:58:12 +00:00
adriadam10 commented 2026-10-01 17:50:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-01T17:50:38Z.


What

Completes libScePlayGo (two commits).

  1. Error codes. BAD_POINTER, BAD_HANDLE and BAD_SIZE were 0x80B20004, 0x80B20005 and 0x80B2000D, which are INVALID_ARGUMENT, NOT_INITIALIZED and BAD_SPEED. They are now 0x80B2000A, 0x80B20009 and 0x80B2000B, as in KytyPS5, shadPS4 (playgo_types.h) and fpPS4, which agree on the whole 0x80B200xx table. A title that tells "not initialized" from "bad handle", or "bad size" from "bad speed", got the wrong answer.
  2. scePlayGoGetLanguageMask reports every language (~0), consistent with the rest of the file: the title is fully installed. scePlayGoSetToDoList validates the handle, pointer, entry count, chunk IDs (from the existing chunk set) and loci, returning BAD_LOCUS (0x80B20010) for an unknown locus. Since nothing is pending, the list is not kept and scePlayGoGetToDoList keeps returning no entries. Behaviour follows KytyPS5.

libScePlayGo gets a CMakeLists.txt, modelled on libSceRtc, to register the test.

Tested

Linux (CachyOS, GCC): new guest_playgo test (core/libs/tests/GuestPlayGo.cpp) covers both new exports, their error paths and the corrected codes through existing exports. It fails with the old BAD_POINTER value and with the previous stubs. Full suite passes. Windows only through CI. No title 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:4707438146 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/238). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-01T17:50:38Z. --- ### What Completes `libScePlayGo` (two commits). 1. **Error codes.** `BAD_POINTER`, `BAD_HANDLE` and `BAD_SIZE` were `0x80B20004`, `0x80B20005` and `0x80B2000D`, which are `INVALID_ARGUMENT`, `NOT_INITIALIZED` and `BAD_SPEED`. They are now `0x80B2000A`, `0x80B20009` and `0x80B2000B`, as in KytyPS5, shadPS4 (`playgo_types.h`) and fpPS4, which agree on the whole `0x80B200xx` table. A title that tells "not initialized" from "bad handle", or "bad size" from "bad speed", got the wrong answer. 2. **`scePlayGoGetLanguageMask`** reports every language (`~0`), consistent with the rest of the file: the title is fully installed. **`scePlayGoSetToDoList`** validates the handle, pointer, entry count, chunk IDs (from the existing chunk set) and loci, returning `BAD_LOCUS` (`0x80B20010`) for an unknown locus. Since nothing is pending, the list is not kept and `scePlayGoGetToDoList` keeps returning no entries. Behaviour follows KytyPS5. `libScePlayGo` gets a `CMakeLists.txt`, modelled on `libSceRtc`, to register the test. ### Tested Linux (CachyOS, GCC): new `guest_playgo` test (`core/libs/tests/GuestPlayGo.cpp`) covers both new exports, their error paths and the corrected codes through existing exports. It fails with the old `BAD_POINTER` value and with the previous stubs. Full suite passes. Windows only through CI. No title tested. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] 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) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-01 17:51:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-01T17:51:05Z.


Progress report (bc51b33 → 2b36dc2)

📈 System libraries: 76.56% (+0.06%, +2 implemented functions)

✅ 2 implemented
Library Name
libScePlayGo scePlayGoGetLanguageMask
libScePlayGo scePlayGoSetToDoList
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5937194059 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/238#issuecomment-5937194059). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-01T17:51:05Z. --- <!-- progress-report --> ### Progress report (bc51b33 → 2b36dc2) 📈 **System libraries**: 76.56% (+0.06%, +2 implemented functions) <details> <summary>✅ 2 implemented</summary> | Library | Name | | - | - | | libScePlayGo | `scePlayGoGetLanguageMask` | | libScePlayGo | `scePlayGoSetToDoList` | </details>
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!238
No description provided.