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

Function read_data_mtimes

src/resource/data_compiler.cpp:370–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370static void read_data_mtimes(HashMap<StringId64, u64> &mtimes
371 , FilesystemDisk &data_fs
372 , const HashMap<StringId64, DynamicString> &data_index
373 , const char *filename
374 )
375{
376 Buffer json(default_allocator());
377 File *file = data_fs.open(filename, FileOpenMode::READ);
378 if (file->is_open())
379 file->read_all(json);
380 data_fs.close(*file);
381
382 parse_data_mtimes(mtimes, data_index, json);
383}
384
385static void add_dependency_internal(HashMap<StringId64, HashMap<DynamicString, u32>> &dependencies, ResourceId id, const DynamicString &dependency, u32 flags)
386{

Callers 1

scan_and_restoreMethod · 0.85

Calls 5

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

Tested by

no test coverage detected