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

Method askToBZFS

src/clientbase/WorldDownLoader.cpp:233–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231
232
233void WorldDownLoader::askToBZFS() {
234 // Why do we use the error status for this?
235 showError("Downloading World...");
236 char message[MaxPacketLen];
237 // ask for world
238 nboPackUInt32(message, 0);
239 serverLink->send(MsgGetWorld, sizeof(uint32_t), message);
240 worldPtr = 0;
241 if (cacheOut) {
242 delete cacheOut;
243 cacheOut = NULL;
244 }
245 cacheOut = FILEMGR.createDataOutStream(worldCachePath, true, true);
246}
247
248
249bool WorldDownLoader::isCached(char* hexDigest) {

Callers

nothing calls this directly

Calls 4

nboPackUInt32Function · 0.85
createDataOutStreamMethod · 0.80
showErrorFunction · 0.50
sendMethod · 0.45

Tested by

no test coverage detected