fix(libScePlayGo): report optional chunks as supported and installed #6033
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6033"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-14T19:55:18Z.
What
Carried from #6031 by @Tamalero, who cannot open pull requests yet. Their commit is unchanged apart from a rebase onto current
main, and keeps them as author.Marvel's Guardians of the Galaxy (PPSA01748) opens on a language picker. On
mainits text row offers only Arabic, Korean and the Chinese variants, so the game runs in Chinese. Before the picker the title callsscePlayGoGetSupportedOptionalChunk(twice) andscePlayGoGetOptionalChunk(once) with type 0. Both returned 0 with an empty bitmask: no language packs supported or installed. The row then hides every language itsplaygo-scenario.jsonlists inchunkSupportedLanguages, English included.A dump is fully installed, so both functions now set every bit, as
scePlayGoGetLanguageMaskalready does for languages.typestays ignored. The bit layout and thetypevalues are not known, anddocs/dev/debt/libScePlayGo.mdrecords that.guest_playgochecks both functions for a bad handle, a null pointer and every bit set.Fixes #6031.
Tested
By Tamalero (details in #6031): PPSA01748 v01.006.000, Linux, RTX 4090. On
mainthe text row lists only Arabic, Korean and Chinese in 3 of 3 runs. With both functions reporting every bit, every language inparam.jsonis listed, English included, and the title goes on past the picker (1 of 1 run).Re-checked here, without the title: Ubuntu 24.04, GCC 13.3 (CI's compiler), Release with CI's configure flags, on
main411e5e6d9:guest_playgoandguest_playgo_dialogpass. Withmain'sExport.cppand the new checks,guest_playgofails.guest_*tests pass.guest_user_serviceaborts the same way onmainwithout this change, since #3507 (opened separately).tools/check_conventions.py --base upstream/mainpasses.tools/pr_overlap.py --branchreports #5494, which changes the existingdocs/dev/debt/libScePlayGo.mdentry just above the one this adds; the overlap is only in text.Not checked on Windows or on a console.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T20:11:10Z.
I built and ran the full
GuestPlayGo.cppregression executable withExport.cppin a standalone Linux harness using a temporaryResolvePath_nid_no_patchshim; it passed (exit 0), including the new bad-handle, null-pointer and all-bits-set checks. The normal CMakeguest_playgo_teststarget also built, but its CTest run aborts before the PlayGo checks because this Xeon E5-1620 v2 host lacks the AVX2/BMI/LZCNT features required by the emulator. This was not a title run.Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-14T20:11:45Z.
Thanks for running it. To fill in the CTest part: on an i7-13700K (Ubuntu 24.04, GCC 13.3, Release) the normal
guest_playgoCTest passes on this branch and fails withmain'sExport.cpp.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by Tamalero on 2026-10-14T22:14:24Z.
Ran this PR's head (
0fda02190) with Guardians of the Galaxy (PPSA01748 v01.006.000) on NVIDIA and on AMD, each from a fresh profile so the language picker comes up. On both, the picker is in English and both rows (voice and text) default to English. Onmainwithout the change, the same screen opens in Simplified Chinese and the text row offers only Arabic, Korean and Chinese.--to-intelrelink--to-intelDetails
sceNpGetUserIdByAccountIdreturnsUSER_NOT_FOUNDoffline), unrelated to PlayGo. No PlayGo environment switches.mainwithout this change.Tested and written by Claude (AI assistant) on a contributor's machine.

BEFORE FIX:
AFTER:
AMD EPYC + V620

Intel 14900k+Nvidia 4090

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-14T22:34:08Z.
Rebased onto
maineea428ca8: the only conflict was the libScePlayGo debt entry next to #5494's (now merged). Main's entry is kept and this one added below it.guest_playgostill passes andtools/check_conventions.py --base upstream/mainpasses. Thanks @Tamalero for the NVIDIA and AMD runs.AI-assisted: yes