fix(libScePlayGo): configure answers for unlisted chunks #6263

Closed
MarcZX10 wants to merge 1 commit from upstream-pr/6263 into main
MarcZX10 commented 2026-10-15 08:17:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T08:17:58Z.


What

Fixes #6205. Dumps with no PlayGo chunk table or scenario file still stop by default when an unknown chunk is queried. Users can now explicitly choose how such ids are answered with APS5_PLAYGO_UNLISTED_CHUNKS=installed or absent; invalid values throw. Dumps that contain PlayGo metadata keep their existing behavior. This lets titles with different expectations use the same emulator configuration model without changing the default safety behavior.

Tested

  • Linux Release build: guest_playgo_tests and libScePlayGo.prx compile.
  • python3 tools/check_conventions.py --base upstream/main --head HEAD: passed.
  • git diff upstream/main...HEAD --check: passed.
  • guest_playgo_tests could not reach its test cases here: AnyPS5's host CPU guard aborts on this Xeon E5-1620 v2 because it lacks LZCNT, BMI1, BMI2, MOVBE, AVX2, and FMA.
  • The issue report documents High on Life startup/playback with installed, plus behavior and negative-test evidence. A reporter also observed Kena continuing with the absent behavior. Windows and Sifu were not tested with this branch.

Checklist

  • One topic per PR; follow-ups go in a new PR
  • No investigation notes or images added to the repository
  • Generic behavior, not specific to one title
  • Depends on: none
  • Unblocks: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4870304828 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6263). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-15T08:17:58Z. --- ### What Fixes #6205. Dumps with no PlayGo chunk table or scenario file still stop by default when an unknown chunk is queried. Users can now explicitly choose how such ids are answered with `APS5_PLAYGO_UNLISTED_CHUNKS=installed` or `absent`; invalid values throw. Dumps that contain PlayGo metadata keep their existing behavior. This lets titles with different expectations use the same emulator configuration model without changing the default safety behavior. ### Tested - Linux Release build: `guest_playgo_tests` and `libScePlayGo.prx` compile. - `python3 tools/check_conventions.py --base upstream/main --head HEAD`: passed. - `git diff upstream/main...HEAD --check`: passed. - `guest_playgo_tests` could not reach its test cases here: AnyPS5's host CPU guard aborts on this Xeon E5-1620 v2 because it lacks LZCNT, BMI1, BMI2, MOVBE, AVX2, and FMA. - The issue report documents High on Life startup/playback with `installed`, plus behavior and negative-test evidence. A reporter also observed Kena continuing with the `absent` behavior. Windows and Sifu were not tested with this branch. ### Checklist - [x] One topic per PR; follow-ups go in a new PR - [x] No investigation notes or images added to the repository - [x] Generic behavior, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] AI-assisted: yes
MarcZX10 commented 2026-10-15 08:42:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T08:42:07Z.


I found that #6236, opened earlier, implements the same PlayGo setting on the same files. I missed that overlap before opening this PR. The changes appear functionally equivalent, so I am flagging the duplication here and will follow maintainer direction on which PR should carry the fix.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6188093105 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6263#issuecomment-6188093105). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-15T08:42:07Z. --- I found that #6236, opened earlier, implements the same PlayGo setting on the same files. I missed that overlap before opening this PR. The changes appear functionally equivalent, so I am flagging the duplication here and will follow maintainer direction on which PR should carry the fix.
github-actions[bot] commented 2026-10-15 12:17:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:17:42Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 6044 core/libs/tests/GuestPlayGo.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6191851222 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6263#issuecomment-6191851222). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T12:17:42Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/tests/GuestPlayGo.cpp` |
Tamalero commented 2026-10-16 18:19:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Tamalero on 2026-10-16T18:19:37Z.


@MarcZX100 a request about authorship before this merges: please replace 9e75cc67a with 6ec8b9ba6 from fix/playgo-unlisted-chunks-setting on the fork (https://github.com/Tamalero/AnyPS5/tree/fix/playgo-unlisted-chunks-setting). It's patch-identical; only the author changes, to Tamalero <[email protected]>. Please refer to the author by the handle only in PR text. Thanks!

Tested and written by Claude (AI assistant) on a contributor's machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6221952506 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6263#issuecomment-6221952506). Originally posted by [Tamalero](https://github.com/Tamalero) on 2026-10-16T18:19:37Z. --- @MarcZX100 a request about authorship before this merges: please replace `9e75cc67a` with `6ec8b9ba6` from `fix/playgo-unlisted-chunks-setting` on the fork (https://github.com/Tamalero/AnyPS5/tree/fix/playgo-unlisted-chunks-setting). It's patch-identical; only the author changes, to `Tamalero <11452991+[email protected]>`. Please refer to the author by the handle only in PR text. Thanks! *Tested and written by Claude (AI assistant) on a contributor's machine.*
MarcZX10 commented 2026-10-16 18:43:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T18:43:32Z.


Updated the branch to the exact patch-identical commit you provided (6ec8b9ba6), preserving your supplied commit metadata. The PR head now matches that commit.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6222362734 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6263#issuecomment-6222362734). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T18:43:32Z. --- Updated the branch to the exact patch-identical commit you provided (`6ec8b9ba6`), preserving your supplied commit metadata. The PR head now matches that commit.
oneandonlydean commented 2026-10-17 00:03:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T00:03:11Z.


Closing in favour of #6236, which carries the same change byte for byte and is being tested on current main. If you'd rather this one go first, say so on #6236.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6227030773 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6263#issuecomment-6227030773). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-17T00:03:11Z. --- Closing in favour of #6236, which carries the same change byte for byte and is being tested on current main. If you'd rather this one go first, say so on #6236.

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