fix(json2): implement InitParameter2 base constructor #3670
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3670"
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 SibteProf on 2026-10-11T15:07:26Z.
What
The
sce::Json::InitParameter2base-object constructor currently throws on every call. Give it the constructor signature (void, with an object pointer) and forward to the existing complete-object constructor so it initializes the allocator, user data and file buffer size.Carry the implementation and regression from lucfx18's closed PR #2823, preserving its original Git author. Extend the regression to check typed default values and untouched bytes before and after the object, followed by setters and initializer use. The existing inferred object layout and unverified console initialization bytes are recorded in TechnicalDebt.
The progress scanner reports 2,904/3,383 (85.84%), up from 2,903/3,383 (85.81%): one existing pending function becomes implemented, with no new definitions.
Related work: #3575 adds a different setter and extends the object layout. This PR keeps its constructor regression in a separate test function and its technical-debt note in a separate entry, so the two merge cleanly; the combined
guest_jsontest passes. No dependency is needed. #3737 was opened after this PR and includes the same C2 constructor in a broader initialization change; that implementation overlaps and needs a maintainer choice.Tested
Windows 11 Pro, build 26200; WinLibs MinGW-w64 GCC 15.2.0,
x86_64-ucrt-posix-seh, release15.2.0posix-14.0.0-ucrt-r7; Ninja Release,BUILD_TESTING=ON.guest_jsonpasses. The same updated test fails against unchangedmainat the unimplemented C2 constructor; restoring the implementation makes it pass.guest_json|progress_report|progress_encoding|conventions_function_bodies|test_registration: 5/5 pass.tools/check_conventions.py --base origin/main,tools/check_test_registration.py buildandgit diff --checkpass.cmake --build build --parallel 6andcmake --build build --target libs --parallel 6pass. After the full build,patched_librariesandguest_jsonpass (2/2).guest_jsonpasses on this branch alone and on its clean merge with #3575. The revised regression still fails against the unchanged main constructor and passes with the implementation restored.Checklist
main; no overlapping implementation existed when this PR was opened. Later #3737 implements the same C2 constructor.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T15:09:35Z.
Progress report (
32f6414→eaa9ce9)📈 System libraries: 85.87% (+0.03%, +1 implemented functions)
✅ 1 implemented
_ZN3sce4Json14InitParameter2C2EvImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T15:28:50Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceJson2/Export.cppL841-850core/libs/tests/GuestJson.cppL386, L461_ZN3sce4Json14InitParameter2C2EvImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T21:54:58Z.
Rebased onto current
main(only conflict: the TechnicalDebt line next tosceAgcCreatePrimState; moved it elsewhere in the section). Scoped build and ctest green after the rebase (76 tests,guest_jsonincluded); the code is unchanged. The C2 forward to C1 is exact for a class without virtual bases; merging once CI is green.@MarcZX100 #3737 includes the same
InitParameter2C2Evchange, so it will need a rebase over this one (drop the C2 part).