| 155 | } |
| 156 | |
| 157 | bool 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 | |
| 165 | bool ImageSampler::ReadCacheFile(const std::string& path, uint16_t checksum) { |
| 166 | FILE* file = my_fopen(path.c_str(), "rb"); |
no test coverage detected