| 164 | } |
| 165 | |
| 166 | static void RemoveCachedContentFile(HCache cache, uint64_t identifier_hash) |
| 167 | { |
| 168 | char path[DMPATH_MAX_PATH]; |
| 169 | ContentFilePath(cache, identifier_hash, path, sizeof(path)); |
| 170 | dmSys::Result r = dmSys::Unlink(path); |
| 171 | if (r != dmSys::RESULT_OK) |
| 172 | { |
| 173 | dmLogWarning("Unable to remove %s", path); |
| 174 | cache->m_Dirty = true; |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | static bool IsValidHeader(IndexHeader* header) |
| 179 | { |
no test coverage detected