| 73 | } |
| 74 | |
| 75 | std::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 | |
| 85 | void ServerListCache::saveCache() { |
| 86 | std::string fileName = getCacheFilename(); |
nothing calls this directly
no test coverage detected