libs: implement Json Value::referValue by key and Value::toString #455

Manually merged
github merged 1 commit from gh-pr/455/head into gh-pr/455/base 2026-11-26 09:21:40 +00:00
Owner

@⁠brandostrong on GitHub · 2026-09-02 21:49 UTC · original
brandostrong:fix/json2-refer-value-to-string → main · +28 −0 · 1 files · 1 commits · merged 2026-09-02 23:58 UTC

Problem. Two libSceJson2 imports were unresolved stubs: sce::Json::Value::referValue(const String&) and Value::toString(String&) const. Astro Bot calls the first 77 times and the second 47 times while loading, then asserts Animation does not exist because every lookup came back empty, and deliberately crashes after the assert.

Change. referValue returns the child for the given key when the value is an object, otherwise the shared null value. toString writes the value's raw content into the caller's string. Both mirror the neighbouring already-implemented Value entries.

Effect. Astro Bot loads past the animation lookup; the assert and the crash after it are gone.

Verification. Astro Bot run; existing suites unchanged.

References

  • No public specification for this function. Behaviour follows the neighbouring implemented sce::Json::Value entries in libJson2.cpp and the calls observed in the game log (77 referValue, 47 toString before the assert).
**@⁠brandostrong** on GitHub · 2026-09-02 21:49 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/455) `brandostrong:fix/json2-refer-value-to-string` → `main` · +28 −0 · 1 files · 1 commits · merged 2026-09-02 23:58 UTC **Problem.** Two `libSceJson2` imports were unresolved stubs: `sce::Json::Value::referValue(const String&)` and `Value::toString(String&) const`. Astro Bot calls the first 77 times and the second 47 times while loading, then asserts `Animation does not exist` because every lookup came back empty, and deliberately crashes after the assert. **Change.** `referValue` returns the child for the given key when the value is an object, otherwise the shared null value. `toString` writes the value's raw content into the caller's string. Both mirror the neighbouring already-implemented `Value` entries. **Effect.** Astro Bot loads past the animation lookup; the assert and the crash after it are gone. **Verification.** Astro Bot run; existing suites unchanged. **References** - No public specification for this function. Behaviour follows the neighbouring implemented `sce::Json::Value` entries in `libJson2.cpp` and the calls observed in the game log (77 `referValue`, 47 `toString` before the assert).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:21:37 +00:00
github manually merged commit be32716294 into gh-pr/455/base 2026-11-26 09:21:40 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.