MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / isCached

Method isCached

src/clientbase/WorldDownLoader.cpp:249–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247
248
249bool WorldDownLoader::isCached(char* hexDigest) {
250 std::istream* cachedWorld;
251 bool cached = false;
252 worldHash = hexDigest;
253 worldCachePath = getCacheDirName();
254 worldCachePath += hexDigest;
255 worldCachePath += ".bwc";
256 if ((cachedWorld = FILEMGR.createDataInStream(worldCachePath, true))) {
257 cached = true;
258 delete cachedWorld;
259 cachedWorld = NULL;
260 }
261 return cached;
262}
263
264
265void WorldDownLoader::loadCached() {

Callers

nothing calls this directly

Calls 2

getCacheDirNameFunction · 0.85
createDataInStreamMethod · 0.80

Tested by

no test coverage detected