MCPcopy Create free account
hub / github.com/crownengine/crown / read_data_versions

Function read_data_versions

src/resource/data_compiler.cpp:282–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282static void read_data_versions(HashMap<StringId64, u32> &versions
283 , FilesystemDisk &data_fs
284 , const char *filename
285 )
286{
287 Buffer json(default_allocator());
288 File *file = data_fs.open(filename, FileOpenMode::READ);
289 if (file->is_open())
290 file->read_all(json);
291 data_fs.close(*file);
292
293 parse_data_versions(versions, json);
294}
295
296static void parse_data_index(HashMap<StringId64, DynamicString> &index
297 , const SourceIndex &sources

Callers 1

scan_and_restoreMethod · 0.85

Calls 5

parse_data_versionsFunction · 0.85
read_allMethod · 0.80
openMethod · 0.45
is_openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected