feat(libSceJson2): implement InitParameterRtti and MemAllocator::notifyError #2309

Closed
Darkeox34 wants to merge 1 commit from upstream-pr/2309 into main
Darkeox34 commented 2026-10-09 15:17:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Darkeox34 on 2026-10-09T15:17:21Z.


What

Completes 100% export coverage for libSceJson2:

  • Implements _ZN3sce4Json17InitParameterRttiC1EPNS0_14AllocParamRttiEPvm
    (sce::Json::InitParameterRtti::InitParameterRtti).
  • Implements _ZN3sce4Json12MemAllocator11notifyErrorEimPv
    (sce::Json::MemAllocator::notifyError).
  • Adds unit tests in core/libs/tests/GuestJson.cpp.
  • Updates docs/dev/TechnicalDebt.md.

Tested

  • Unit test suite (GuestJson).
  • python tools/check_conventions.py --base upstream/main.
  • python tools/progress.py.

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 in
    TechnicalDebt
  • 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
  • AI-assisted: yes

Summary of Changes

Target Description
core/libs/prx/libSceJson2/Export.cpp Implement _ZN3sce4Json17InitParameterRttiC1EPNS0_14AllocParamRttiEPvm (sce::Json::InitParameterRtti)
core/libs/tests/GuestJson.cpp Add unit tests verifying InitParameterRtti struct member initialization and null pointer validation
docs/dev/TechnicalDebt.md Document structural assumptions and layout details for sce::Json::InitParameterRtti
  • Passes convention checks (python tools/check_conventions.py --base upstream/main).
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4802361217 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2309). Originally posted by [Darkeox34](https://github.com/Darkeox34) on 2026-10-09T15:17:21Z. --- ### What Completes 100% export coverage for `libSceJson2`: - Implements `_ZN3sce4Json17InitParameterRttiC1EPNS0_14AllocParamRttiEPvm` (`sce::Json::InitParameterRtti::InitParameterRtti`). - Implements `_ZN3sce4Json12MemAllocator11notifyErrorEimPv` (`sce::Json::MemAllocator::notifyError`). - Adds unit tests in `core/libs/tests/GuestJson.cpp`. - Updates `docs/dev/TechnicalDebt.md`. ### Tested - Unit test suite (`GuestJson`). - `python tools/check_conventions.py --base upstream/main`. - `python tools/progress.py`. ### 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 in TechnicalDebt - [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] AI-assisted: yes ### Summary of Changes | Target | Description | | :--- | :--- | | `core/libs/prx/libSceJson2/Export.cpp` | Implement `_ZN3sce4Json17InitParameterRttiC1EPNS0_14AllocParamRttiEPvm` (`sce::Json::InitParameterRtti`) | | `core/libs/tests/GuestJson.cpp` | Add unit tests verifying `InitParameterRtti` struct member initialization and null pointer validation | | `docs/dev/TechnicalDebt.md` | Document structural assumptions and layout details for `sce::Json::InitParameterRtti` | - Passes convention checks (`python tools/check_conventions.py --base upstream/main`).
github-actions[bot] commented 2026-10-09 15:29:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T15:29:48Z.


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.

Pull request Conflicting files (lines on main) Same exports Same new files
#2308 core/libs/tests/GuestJson.cpp L88
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6083997154 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2309#issuecomment-6083997154). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-09T15:29:48Z. --- <!-- pr-overlap --> 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**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #2308 | `core/libs/tests/GuestJson.cpp` [L88](https://github.com/boykopovar/AnyPS5/blob/8b393b6e9a8ade9188d4f74a0293e0efd9828597/core/libs/tests/GuestJson.cpp#L88) | | |
AnzouBelilita commented 2026-10-09 16:57:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by AnzouBelilita on 2026-10-09T16:57:13Z.


Independent Windows validation for PR #2309:

  • OS: Windows 10 Pro, build 19045
  • Toolchain: MinGW-w64 GCC 16.2.0, CMake 4.4.4, Ninja 1.13.2
  • Configured the project in Release mode with BUILD_TESTING=ON.
  • Built guest_json_tests successfully (96 build steps).
  • CTest: guest_json passed (1/1, 0 failures).
  • python tools/check_conventions.py --base d70b89989473ba1f6ae13e44e079e67f1f8a44b0 passed.
  • git diff --check d70b89989473ba1f6ae13e44e079e67f1f8a44b0...HEAD passed.
  • Tested PR head: 5270c5cfad36b3fd9b0b9aac710d864537053fc8.

This confirms that the PR builds and its JSON tests pass on native Windows. It does not resolve the competing notifyError implementations in #2308 and #2309, nor verify PS5-specific behavior.

No production code was modified during validation.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6085419093 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2309#issuecomment-6085419093). Originally posted by [AnzouBelilita](https://github.com/AnzouBelilita) on 2026-10-09T16:57:13Z. --- Independent Windows validation for PR #2309: * OS: Windows 10 Pro, build 19045 * Toolchain: MinGW-w64 GCC 16.2.0, CMake 4.4.4, Ninja 1.13.2 * Configured the project in Release mode with `BUILD_TESTING=ON`. * Built `guest_json_tests` successfully (96 build steps). * CTest: `guest_json` passed (1/1, 0 failures). * `python tools/check_conventions.py --base d70b89989473ba1f6ae13e44e079e67f1f8a44b0` passed. * `git diff --check d70b89989473ba1f6ae13e44e079e67f1f8a44b0...HEAD` passed. * Tested PR head: `5270c5cfad36b3fd9b0b9aac710d864537053fc8`. This confirms that the PR builds and its JSON tests pass on native Windows. It does not resolve the competing `notifyError` implementations in #2308 and #2309, nor verify PS5-specific behavior. No production code was modified during validation.
oneandonlydean commented 2026-10-09 20:11:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T20:11:45Z.


Closing: export coverage alone isn't a reason to add these, and no title is shown reaching InitParameterRtti or notifyError on main. Please reopen with the title ID and the log line if one does.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6088468060 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2309#issuecomment-6088468060). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T20:11:45Z. --- Closing: export coverage alone isn't a reason to add these, and no title is shown reaching `InitParameterRtti` or `notifyError` on main. Please reopen with the title ID and the log line if one does.

Pull request closed

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!2309
No description provided.