Repository navigation
fix(libkernel): read defaultLanguage from localizedParameters - #710
Conversation
|
Thanks, the parser change looks right to me. Two things about the test, though.
On PPSA21564: its |
A PS5 param.json keeps defaultLanguage inside localizedParameters, next to the language entries. The parser looked for it at the root only, then fell back to en-US and to the first member, which is the defaultLanguage string when no en-US entry exists (PPSA12544 has only en-GB), and threw "expected JSON object". defaultLanguage is now read from localizedParameters first, and the fallback takes the first language object. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ee75ed3 to
9489b85
Compare
|
Thanks for testing it on Linux. Rebased onto #661 and reworked the test as suggested:
With the parser change reverted the test now fails cleanly with |
|
Thanks for reworking it. I ran it on Linux at 9489b85 (GCC 16, Release, with only this PR merged on main): With only the new test lines applied to main's parser, it fails with |
What
A PS5
param.jsonkeepsdefaultLanguageinsidelocalizedParameters, next to the language entries:parseParamJsonlooked fordefaultLanguageat the root only, then fell back toen-USand to the first member oflocalizedParameters. Without anen-USentry the first member is thedefaultLanguagestring, and the next lookup threwexpected JSON object in param.json, which stops presentation ([videoout] presentation failed).defaultLanguageis read fromlocalizedParametersfirst, then from the root as before.localizedParameterswithout one throwsparam.json localizedParameters has no language entry.param_json_parser(from fix(libkernel): preserve 64-bit metadata download sizes #661): new language cases — nesteddefaultLanguagewith CRLF line endings and onlyen-GB, nested selection overen-US, fallback toen-US, the root-leveldefaultLanguage, and no language entry. With the parser change reverted the test fails withexpected JSON object in param.json.Tested
Windows 11, WinLibs GCC 15.2.0 r7, Ryzen 7 9800X3D, Radeon RX 9070 XT.
ctest(rebased on2707b3a3): 315/317 passed, includingparam_json_parser.agc_driver_lds_atomics64andagc_driver_vopc_compare_tablefail on this machine onmainas well (Vulkan device tests).localizedParametersholdsdefaultLanguageanden-GBonly) with fix(relinker): accept absolute symbols in guest modules #698, feat(libs): add exports imported by PPSA12544 #699, fix(libkernel): report reserved virtual ranges in sceKernelVirtualQuery #700, feat(libkernel): implement sceKernelIsStack #702, feat(userservice): implement sceUserServiceGetAgeLevel #705, fix(videoout): report unavailable output modes instead of throwing #709, feat(agc): present DCC display buffers whose keys are uncompressed or fast-cleared #648: the window title is read and the title continues to the Vulkan device and swapchain.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