| 23 | } |
| 24 | |
| 25 | bool UserConfig::parse(const char *json) |
| 26 | { |
| 27 | TempAllocator4096 ta; |
| 28 | JsonObject cfg(ta); |
| 29 | sjson::parse(cfg, json); |
| 30 | |
| 31 | if (json_object::has(cfg, "render_settings")) |
| 32 | render_settings::parse(render_settings, cfg["render_settings"]); |
| 33 | |
| 34 | return true; |
| 35 | } |
| 36 | |
| 37 | bool UserConfig::load(File *file) |
| 38 | { |