fix(libSceSystemService): answer parameter 400 with the console language #3933
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3933"
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 fma-rc on 2026-10-11T19:19:01Z.
What
sceSystemServiceParamGetIntanswers parameter 400 with the console language, the same number parameter 1 gives.Astro's Playroom (PPSA01325) asks for parameter 400 first and asks for parameter 1 only when that call returns non-zero (thunk at app
0x1847ad1, called once from0x183e9cewithedi = 0x190). It uses whichever answer it got as an index below 31 into its language table, anddata/common/font_languages.xmlhas 31 entries. Onmainan unknown parameter returns 0 withSYSTEM_SERVICE_OK, so the title read 0 and showed Japanese text whateverANYPS5_LANGUAGEsaid.Source for the answer: in the PS5 10.01 and 12.60
libSceSystemServicemodules (decrypted system modules, read as disassembly),sceSystemServiceParamGetIntreads the same registry value for parameter 400 as for parameter 1. Two differences are not modelled and are in the TechnicalDebt entry: parameter 1 maps newer language numbers down by SDK version and 400 does not, and 400 returns0x80a10003when an imported check I could not identify returns 1. The 4.03 module has no parameter 400. I found no public source that names the parameter (OpenOrbis, SharpProspero, shadPS4, prosper, GitHub code search), so the constant is named after its number. Thedefaultbranch for other unknown parameters is unchanged.Tested
Arch Linux, GCC 16.2.1,
maina11c8f7f7with this commit.guest_system_service_languagepasses; withExport.cppreverted it aborts on the first assertion.tools/check_conventions.py --base origin/mainpasses. Both pass again after the rebase ontomain7a84b2226(2026-10-12).Astro's Playroom PPSA01325 on an RTX 5080 with #3669, #425, #3750 and #3878 merged locally (it does not reach its title screen without them): the title screen and main menu are Japanese without this commit and English with it ("PRESS ANY BUTTON", "CONTINUE", "START A NEW GAME", "CONTROLLER DEMO"). PRs 3669 and 3750 have merged since; the title was not run again on the new base. Not built on Windows.
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)