feat(libSceJson2): implement InitParameter2 constructors #3737
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3737"
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 MarcZX10 on 2026-10-11T16:12:34Z.
What
Implements the
InitParameter2C1/C2 constructors,InitParameterRtticonstructor,InitParameterRtti2::setAllocatorRtti, andsetSpecialFloatFormatType. Adds guest coverage for the object layout, constructors and setters, and records what remains inferred in TechnicalDebt.This carries the ready #3348 implementation onto current
main, preserving David's author metadata. The setter also appears in #3575; this PR includes that behavior with the completeInitParameter2layout plus the three other imported exports. For issue #3348's broader scope, this is the more complete PR. The open JSON2 PRs #3570 and #3571 touch adjacent code/tests but implement different exports.Tested
Local Linux Release build of
guest_json_tests;guest_jsonpassed (1/1).tools/check_conventions.py --base upstream/mainandgit diff upstream/main --checkpass.Independent Linux verification reports
guest_jsonand full suite (520/520) passed. The original Windows Release report recordsguest_json3/3 and full suite 507/507, with the #3329 test fix applied locally. Verification details are in issue #3348.Checklist
main; related open PR #3575 implements only the setter, which is included here alongside the other importsImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T16:12:57Z.
Progress report (
fabbeb3→8c00fe8)📈 System libraries: 86.19% (+0.06%, +3 implemented functions)
✅ 3 implemented
_ZN3sce4Json14InitParameter225setSpecialFloatFormatTypeENS0_22SpecialFloatFormatTypeE_ZN3sce4Json17InitParameterRttiC1EPNS0_14AllocParamRttiEPvm_ZN3sce4Json18InitParameterRtti216setAllocatorRttiEPNS0_14AllocParamRttiEPvImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T21:57:29Z.
Checked the layout against KytyPS5
libJson2.cpp(JsonInitParameter2: 40 bytes, special float format type at 0x18), built and ran the Json tests (scoped ctest 20/20 green), and confirmed the new test fails to link without the change.Added one commit on your branch: the
TechnicalDebt.mdline moved to where the oldInitParameter2line was instead of the end of the file, to avoid append conflicts with other PRs.Merging once CI is green. #3575 adds only the setter that this PR already includes.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T22:06:37Z.
Rebased onto current
main(conflicts inlibSceJson2/Export.cppnext to the newValue::*stubs and inTechnicalDebt.md);guest_jsonpasses after the rebase. TheTechnicalDebt.mdline stays where the oldInitParameter2line was.Merging once CI is green. #3670 adds only the C2 constructor that this PR already includes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T22:21:37Z.
Rebased onto current main after eligibility reported a merge conflict from newer Json2 changes. The rebase preserves the merged base-constructor implementation and its regression coverage alongside this PR’s additional InitParameter2 fields, RTTI setter/constructor, and special-float setter. David remains the author of the carried implementation commit. Linux GCC 12.2 Release build succeeded; guest_json passed (1/1). The conventions checker and git diff --check pass. Fresh GitHub checks are pending.
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T22:50:12Z.
Test from Resident Evil 4 (PPSA07411), Windows, MinGW GCC 15.2.0: the import audit on
mainplus this PR no longer listssce::Json::InitParameter2::setSpecialFloatFormatType, which the title imports; without it the loader stops. I merged this PR together with #3537, #3791, #3517, #3604, #3707 and my export PRs (#3773, #4044, #3799, #3814, #3819); with that stack RE4 gets through the loader and runs 120 s. Not tested: this PR alone.Overlap: #3575 adds
setSpecialFloatFormatTypeas well and conflicts with this PR (git mergeof both ontomain: conflict inlibSceJson2/Export.cppandTechnicalDebt.md), so only one of the two can go in. Also, merging this PR after my stub PRs #3773 and #3814 conflicts textually at the end oflibSceJson2/Export.cpp(both append there); that is on my side to rebase once this one lands.AI-assisted (Claude Code).