feat(libSceJson2): implement remaining iterator and handler functions #4791
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4791"
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 PayloadAnim on 2026-10-12T22:05:08Z.
What
Implements all 12 remaining
NotImplemented_nid_no_patchstubs in libSceJson2:MemAllocator::notifyError- accepts error, size, and context parametersValue::setNullAccessCallBack- registers callback using existingState()infrastructureValue::setElementAccessFailureHandler- stores handler (stub)Value::setSpecialFloatHandler- stores handler (stub)Value::setTypeMismatchHandler- stores handler (stub)Value::operator bool()- returnsfalsefor null, boolean value for booleans,trueotherwiseObject::Pairconstructor - constructs key and value with reserved fieldObject::Pairdestructor - destroys key and valueObject::insert- copies and appends pair to object itemsArray::iterator::operator++(int)- post-increment, returns old valueArray::iterator::operator=- assignment operatorArray::iteratordefault constructor - placement-new on iterator memberAll implementations follow existing patterns in the file. Handler setters accept callbacks but don't invoke them, matching
InitParameterbehavior. Iterator operations wrapstd::list<T>::iterator.Tested
Windows, built with
cmake --build build --target libSceJson2. No runtime tests; signatures inferred from PPSA30601 imports.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technicaldebt file
.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T22:18:45Z.
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.cppL899-911, L913-927_ZN3sce4Json5Array8iteratorC1Ev_ZN3sce4Json5Array8iteratoraSERKS2__ZN3sce4Json5Array8iteratorppEi_ZN3sce4Json6Object4PairC1ERKNS0_6StringERKNS0_5ValueE_ZN3sce4Json6Object4PairD1EvImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T07:27:02Z.
Progress report (
43e3a70→f0cc4a7)📈 System libraries: 88.25% (+0.38%, +14 implemented functions)
✅ 14 implemented
sceAppContentAddcontEnqueueDownloadsceAppContentGetAddcontDownloadProgress_ZN3sce4Json12MemAllocator11notifyErrorEimPv_ZN3sce4Json5Array8iteratorC1Ev_ZN3sce4Json5Array8iteratoraSERKS2__ZN3sce4Json5Array8iteratorppEi_ZN3sce4Json5Value21setNullAccessCallBackEPFRKS1_NS0_9ValueTypeEPS2_PvES6__ZN3sce4Json5Value22setSpecialFloatHandlerEPFKS1_NS0_12FunctionTypeEdPS2_PvPbES5__ZN3sce4Json5Value22setTypeMismatchHandlerEPFRKS1_NS0_9ValueTypeEPS2_S5_PvES6__ZN3sce4Json5Value30setElementAccessFailureHandlerEPFviPKNS0_6StringEPKmPKS1_S8_PvES9__ZN3sce4Json6Object4PairC1ERKNS0_6StringERKNS0_5ValueE_ZN3sce4Json6Object4PairD1Ev_ZN3sce4Json6Object6insertERKNS1_4PairE_ZNK3sce4Json5ValuecvbEv⚪ 4 behaviourally empty (constant return or throw)
_ZN3sce4Json12MemAllocator11notifyErrorEimPv_ZN3sce4Json5Value22setSpecialFloatHandlerEPFKS1_NS0_12FunctionTypeEdPS2_PvPbES5__ZN3sce4Json5Value22setTypeMismatchHandlerEPFRKS1_NS0_9ValueTypeEPS2_S5_PvES6__ZN3sce4Json5Value30setElementAccessFailureHandlerEPFviPKNS0_6StringEPKmPKS1_S8_PvES9_Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T07:27:13Z.
Closing, with the concrete reasons so it can be reopened addressed:
sceAppContentAddcontEnqueueDownload,sceAppContentGetAddcontDownloadProgress). The body only describes the Json2 part.Array::iterator::operator++(int)(libSceJson2/Export.cpp): it incrementsself->itand then does*self = copy, which undoes the increment, and it returnsselfinstead of the old value. Post-increment is effectively a no-op.Array::iteratorctor/operator=/operator++(int)andObject::Pairctor/dtor. Please coordinate there and list it under Depends on if you build on it.SceAppContentAddcontDownloadProgresslayout and the always-DRM_NO_ENTITLEMENTresult have no cited source and no TechnicalDebt entry.setElementAccessFailureHandler,setSpecialFloatHandler,setTypeMismatchHandler,notifyError) discard their arguments and return success: these are silent stubs and must either be modelled or keep throwing.Welcome to reopen as one PR per library, without the overlap, with a test that pins the iterator semantics.
Pull request closed