feat(libSceJson2): add InitParameter2::setSpecialFloatFormatType #3575
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3575"
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 parl0v on 2026-10-11T13:37:03Z.
What
libSceJson2implements thesce::Json::InitParameter2class but is missingsetSpecialFloatFormatType, so a title that imports it fails to load:_ZN3sce4Json14InitParameter225setSpecialFloatFormatTypeENS0_22SpecialFloatFormatTypeE(WVZBP4IyM+E)The NID hashes from that name with the repo's
tools/nid_names.py. Found withtools/import_audit.py: onmain, Minecraft Legends (PPSA05510) imports it and it classifies asabsent.It mirrors the existing
setFileBufferSize: it stores its argument in the parameter block. As with the otherInitParameter2setters,Initializer::initialize(InitParameter2)does not yet act on it, so it does not affect serialization; the TechnicalDebt entry forInitParameter2records this and the added field.(This PR originally also added
Array::front; that is covered by #3570, so it has been dropped here to avoid the duplicate export. OnlysetSpecialFloatFormatTyperemains, which #3570 does not touch.)Tested
Windows, WinLibs MinGW GCC 15.2.0 r7, Release.
guest_jsonpasses. New case:setSpecialFloatFormatTypestores its value in the parameter block (read back at its offset).objdump -pon the patchedlibSceJson2.prxlistsWVZBP4IyM+Ein the export table.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 repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T13:37:27Z.
Progress report (
a11c8f7→6bd8f1e)📈 System libraries: 85.82% (+0.01%, +1 implemented functions)
✅ 1 implemented
_ZN3sce4Json14InitParameter225setSpecialFloatFormatTypeENS0_22SpecialFloatFormatTypeEImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T14:29:12Z.
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/tests/GuestJson.cppL352-353, L355-356docs/dev/TechnicalDebt.mdL335core/libs/prx/libSceJson2/Export.cppL786, L798docs/dev/TechnicalDebt.mdL335_ZN3sce4Json14InitParameter225setSpecialFloatFormatTypeENS0_22SpecialFloatFormatTypeEImported from boykopovar/AnyPS5. Originally posted by parl0v on 2026-10-11T15:20:37Z.
Trimmed this to just
InitParameter2::setSpecialFloatFormatType.Array::frontis covered by #3570 (opened first), so I dropped it here to clear the duplicate export the overlap bot flagged. The remaining export isn't touched by #3570.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T16:12:44Z.
Broader implementation available in #3737
I carried the ready #3348 change into my PR #3737. It includes the same
setSpecialFloatFormatTypebehavior, with the completeInitParameter2layout, and also implements the imported C2 constructor,InitParameterRtticonstructor, andsetAllocatorRtti.For issue #3348's full scope, #3737 is the more complete PR. It has local Linux
guest_jsoncoverage and retains David's attribution for the carried implementation. Please close #3575 in favor of #3737 so the setter is reviewed and merged once as part of the broader fix.Imported from boykopovar/AnyPS5. Originally posted by parl0v on 2026-10-11T18:02:11Z.
Agreed — #3737 carries the full InitParameter2 layout plus the C2/Rtti constructors and preserves David's #3348 attribution, so the setter is better reviewed there. Closing in favor of #3737 (and Array::front is covered by #3570). Thanks @MarcZX100.
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T22:50:36Z.
Overlap: this PR and #3737 both add
sce::Json::InitParameter2::setSpecialFloatFormatType; merging both ontomainconflicts incore/libs/prx/libSceJson2/Export.cpp(andTechnicalDebt.md). Resident Evil 4 (PPSA07411) needs the function; only one of the two PRs can go in.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by parl0v on 2026-10-12T02:02:36Z.
Yes, that overlap is the reason this was closed: #3737 carries the same
setSpecialFloatFormatTypeplus the fullInitParameter2layout and the C2/Rtti constructors, so the setter goes in there instead (andArray::frontis covered by #3570).Pull request closed