feat(libSceJson2): implement sce::Json::Object::empty #2004
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2004"
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 NahuelGenchi on 2026-10-09T04:52:25Z.
What
Implements
sce::Json::Object::empty() const(_ZNK3sce4Json6Object5emptyEv, NIDi2l3IYvQ9UE) in libSceJson2, next toObject::size(), the same wayArray::empty()andString::empty()are implemented. The name comes fromtools/nid_names.py, which checks it against the NID hash.Sonic Origins (PPSA05324) imports it from libSceJson2. On
main, the relinked title stops at startup withsymbol lookup error: undefined symbol: i2l3IYvQ9UE, andtools/import_audit.pylists it as the title's only absent import.Tested
Ubuntu 26.04, GCC 15.2, Release build, AMD Radeon R9 380 (RADV, Mesa 26.0.8).
guest_json_testspasses. It now also checks that a new object is empty and that it is no longer empty onceoperator[]has inserted a key.import_audit.py: 1 absent import (this one) before, 0 after.main, the title exits with code 127 at the symbol lookup above. With this change it loads, starts its threads and creates the Vulkan device. It then stops 7 s in atShaderRecompiler::Recompile: shader image heap capacity exceeded(#1789).tools/check_conventions.py --base origin/mainpasses.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 github-actions[bot] on 2026-10-09T04:52:46Z.
Progress report (
f145139→b9d7ff4)➖ System libraries: 84.76% (+0.0%, +1 implemented functions)
✅ 1 implemented
_ZNK3sce4Json6Object5emptyEvImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T05:16:34Z.
Review: APPROVED
Reviewed the full two-file diff at
b9d7ff46d26cdf3eb9f7beb622a46330b8ef06cd. The export uses the sameitems->empty()operation asArray::empty()and adds focused coverage for empty and populated objects. The NID database confirmsi2l3IYvQ9UEmaps to_ZNK3sce4Json6Object5emptyEv.The Linux, Windows, changes and conventions checks pass on this head. I found no blocking issue.