feat(libSceJson2): implement Value::setNullAccessCallBack #5438

Merged
milchgeldkassierer merged 2 commits from upstream-pr/5438 into main 2026-10-14 12:43:13 +00:00
milchgeldkassierer commented 2026-10-13 19:44:28 +00:00 (Migrated from github.com)

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 called NotImplemented_nid_no_patch, so a title that calls it aborts. It now sets the same global callback and context that Initializer::setGlobalNullAccessCallBack sets, under the same mutex; a null callback clears it. The callback is used by NullAccess, 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 main without 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 case StaticNullAccess in guest_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_json passes. With the stub restored, guest_json aborts. tools/check_conventions.py --base origin/main passes.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes (Claude Code)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4848560443 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5438). Originally posted by [milchgeldkassierer](https://github.com/milchgeldkassierer) on 2026-10-13T19:44:28Z. --- ### What `sce::Json::Value::setNullAccessCallBack(callback, context)` was a stub that called `NotImplemented_nid_no_patch`, so a title that calls it aborts. It now sets the same global callback and context that `Initializer::setGlobalNullAccessCallBack` sets, under the same mutex; a null callback clears it. The callback is used by `NullAccess`, 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 `main` without 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 case `StaticNullAccess` in `guest_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_json` passes. With the stub restored, `guest_json` aborts. `tools/check_conventions.py --base origin/main` passes. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical debt file - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-10-13 19:54:00 +00:00 (Migrated from github.com)

Imported 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6153934218 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5438#issuecomment-6153934218). Originally posted by [MarcZX10](https://github.com/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.
MarcZX10 commented 2026-10-13 20:18:28 +00:00 (Migrated from github.com)

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 /pulls request 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6154374436 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5438#issuecomment-6154374436). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T20:18:28Z. --- I checked the failed intake run. The GitHub API returned HTTP 500 while paginating open PRs (the `/pulls` request 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.
github-actions[bot] commented 2026-10-14 11:44:04 +00:00 (Migrated from github.com)

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
Library Name
libSceJson2 _ZN3sce4Json5Value21setNullAccessCallBackEPFRKS1_NS0_9ValueTypeEPS2_PvES6_
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6167550826 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5438#issuecomment-6167550826). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T11:44:04Z. --- <!-- progress-report --> ### Progress report (c0a2725 → 188de5b) 📈 **System libraries**: 88.39% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceJson2 | `_ZN3sce4Json5Value21setNullAccessCallBackEPFRKS1_NS0_9ValueTypeEPS2_PvES6_` | </details>
adriadam10 commented 2026-10-14 11:47:30 +00:00 (Migrated from github.com)

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_json fails without the change, so StaticNullAccess tests it.

Added in a commit on your branch:

  • core/libs/tests/GuestPPSA01530Exports.cpp: removed setNullAccessCallBack, 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6167620233 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5438#issuecomment-6167620233). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-14T11:47:30Z. --- Checked on Linux: build and tests of the touched directories are green, and `guest_json` fails without the change, so `StaticNullAccess` tests it. Added in a commit on your branch: - `core/libs/tests/GuestPPSA01530Exports.cpp`: removed `setNullAccessCallBack`, 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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!5438
No description provided.