MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetCachePath

Method GetCachePath

Source/Asset/Asset/image_sampler.cpp:157–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157bool ImageSampler::GetCachePath(std::string* dst) {
158 if (!CacheFile::CheckForCache(path_, suffix, dst, &checksum_)) {
159 DisplayError("Error", ("Could not find cache file for " + path_).c_str());
160 return false;
161 }
162 return true;
163}
164
165bool ImageSampler::ReadCacheFile(const std::string& path, uint16_t checksum) {
166 FILE* file = my_fopen(path.c_str(), "rb");

Callers 1

GetCachedFilesMethod · 0.80

Calls 2

DisplayErrorFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected