mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-05 13:20:11 +00:00
sce::Json::Value::getBoolean, getInteger, getUInteger and getReal return const references (const bool&, const long&, const unsigned long&, const double&), so the guest reads the value through the returned pointer. A value-returning implementation made callers dereference the value itself. Cross-type conversions keep main's range rules and are stored on the node so the reference stays valid. Value::referValue(const String&) looks a member up without creating it: it returns null for a missing key or a value that is not an object instead of inserting an entry or throwing. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01ButHENCbXXt8h4EZuWUabJ