fix(libSceAppContent): read user defined app params from param.json #995
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/995"
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 CnRJay on 2026-10-06T22:15:06Z.
What
sceAppContentAppParamGetIntnumbered the SKU flag 1 and returned zero for 2..5. The SDK numbering, as in fpPS4 (src/ps4_libsceappcontent.pas), isSKU_FLAG= 0 andUSER_DEFINED_PARAM_1..4= 1..4. The user defined params now come fromuserDefinedParam1..userDefinedParam4insce_sys/param.json(absent reads as 0); other ids keep returningSCE_APP_CONTENT_ERROR_PARAMETER.The param.json parser reads them as int32 and throws for non-integers or out-of-range values.
AppMetadataexposes them throughGetAppUserDefinedParam.UFC 6 (PPSA23566) reads param 1 at startup and crashes on purpose unless it is its title number (23566, its
userDefinedParam1) or 29746.Tested
edf90b16: 365/365 CTest.param_json_parsercovers present, absent, negative andINT32_MAXparams, and rejects2147483648,1.5,1e3, strings and booleans.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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T05:53:25Z.
Rebased on current
main(trivial conflict inExport.cpp) and added one commit of ours:GuestAppContent.cppnow pinssceAppContentAppParamGetIntids 0..5 (0 = SKU flag 3, 1..4 =userDefinedParam1..4with distinct values incl. negative andINT32_MAX, 5 =SCE_APP_CONTENT_ERROR_PARAMETERleavingvalueuntouched, nullvalue= error). The test fails if the id mapping is shifted. Full ctest green (415/415); merging once CI is green.