feat(libSceJson2): implement Value::setNullAccessCallBack #5438
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5438"
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 milchgeldkassierer on 2026-10-13T19:44:28Z.
What
sce::Json::Value::setNullAccessCallBack(callback, context)was a stub that calledNotImplemented_nid_no_patch, so a title that calls it aborts. It now sets the same global callback and context thatInitializer::setGlobalNullAccessCallBacksets, under the same mutex; a null callback clears it. The callback is used byNullAccess, so a missing member or a type mismatch calls it as before.The function is static and returns void (
_ZN3sce4Json5Value21setNullAccessCallBackEPFRKS1_NS0_9ValueTypeEPS2_PvES6_). Only this export changes.The closed #4791 contained the same implementation among eleven other changes. This PR takes this one export only.
Seen on NHL 26 (PPSA26785 v01.060.000): the title calls it during start-up and stops on the stub. That title does not get that far on
mainwithout local changes for the stop in #5398, so this PR does not unblock it by itself.Tested
Linux Mint 22.3, GCC 13.3,
-DBUILD_TESTING=ON. New caseStaticNullAccessinguest_json_tests: after setting the callback through the static function, a missing member calls it with the requested type, the parent and the context, and returns its value; after setting a null callback, a missing member returns the default null again and the callback is not called.guest_jsonpasses. With the stub restored,guest_jsonaborts.tools/check_conventions.py --base origin/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T19:54:00Z.
The only red check on this PR is
intake, and its log shows a GitHub API 500 (fetch failed) while paginating the open-PR list. It did not report a PR-limit or code issue. GitHub would not let me rerun that run (workflow file may be broken), so please use the PR UI’s re-run action if it is available to you; otherwise a new push should start a fresh intake run.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T20:18:28Z.
I checked the failed intake run. The GitHub API returned HTTP 500 while paginating open PRs (the
/pullsrequest on page 6), so it did not reach an eligibility decision. I tried rerunning it, but GitHub reports this run cannot be rerun because its workflow file may be broken. Once the API is healthy, a new push should trigger a fresh intake run.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T11:44:04Z.
Progress report (
c0a2725→188de5b)📈 System libraries: 88.39% (+0.03%, +1 implemented functions)
✅ 1 implemented
_ZN3sce4Json5Value21setNullAccessCallBackEPFRKS1_NS0_9ValueTypeEPS2_PvES6_Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T11:47:30Z.
Checked on Linux: build and tests of the touched directories are green, and
guest_jsonfails without the change, soStaticNullAccesstests it.Added in a commit on your branch:
core/libs/tests/GuestPPSA01530Exports.cpp: removedsetNullAccessCallBack, which that test pinned as "not implemented" and which now fails (guest_ppsa01530_exports).docs/dev/debt/libSceNet.md: removed the export from the "imports declared without implementation" line, which the PR made false.Merging once CI is green.