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

Method getCacheFilename

src/game/ServerListCache.cpp:75–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75std::string ServerListCache::getCacheFilename() const {
76 // get a file named e.g. BZFS1910Server.bzs in the cache dir
77 // allows separation of server caches by protocol version
78 std::string fileName = getCacheDirName();
79 if (fileName == "") { return ""; }
80 std::string verString = getServerVersion();
81 fileName += verString + "-Servers.bzs";
82 return fileName;
83}
84
85void ServerListCache::saveCache() {
86 std::string fileName = getCacheFilename();

Callers

nothing calls this directly

Calls 2

getCacheDirNameFunction · 0.85
getServerVersionFunction · 0.85

Tested by

no test coverage detected