| 247 | |
| 248 | |
| 249 | bool 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 | |
| 265 | void WorldDownLoader::loadCached() { |
nothing calls this directly
no test coverage detected