| 110 | } |
| 111 | |
| 112 | bool FileSystem::readJson(const char *path, json *doc) { |
| 113 | string text; |
| 114 | if (!readText(path, &text)) { |
| 115 | return false; |
| 116 | } |
| 117 | |
| 118 | // Parse using the new json class |
| 119 | *doc = fl::json::parse(text); |
| 120 | return !doc->is_null(); |
| 121 | } |
| 122 | |
| 123 | bool FileSystem::readScreenMaps(const char *path, |
| 124 | fl::flat_map<string, ScreenMap> *out, string *error) { |