libs: implement Json Value::referValue by key and Value::toString #455
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!455
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/455/head"
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?
@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 UTCProblem. Two
libSceJson2imports were unresolved stubs:sce::Json::Value::referValue(const String&)andValue::toString(String&) const. Astro Bot calls the first 77 times and the second 47 times while loading, then assertsAnimation does not existbecause every lookup came back empty, and deliberately crashes after the assert.Change.
referValuereturns the child for the given key when the value is an object, otherwise the shared null value.toStringwrites the value's raw content into the caller's string. Both mirror the neighbouring already-implementedValueentries.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
sce::Json::Valueentries inlibJson2.cppand the calls observed in the game log (77referValue, 47toStringbefore the assert).