| 368 | } |
| 369 | |
| 370 | static 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 | |
| 385 | static void add_dependency_internal(HashMap<StringId64, HashMap<DynamicString, u32>> &dependencies, ResourceId id, const DynamicString &dependency, u32 flags) |
| 386 | { |
no test coverage detected