| 253 | } |
| 254 | |
| 255 | boost::filesystem::path oclKernelPersistentCache::GetCacheDir(const string &applicationName) const { |
| 256 | #if defined(__linux__) |
| 257 | // boost::filesystem::temp_directory_path() is usually mapped to /tmp and |
| 258 | // the content of the directory is often delete at each reboot |
| 259 | boost::filesystem::path kernelCacheDir(getenv("HOME")); |
| 260 | kernelCacheDir = kernelCacheDir / ".config" / "luxcorerender.org"; |
| 261 | #else |
| 262 | boost::filesystem::path kernelCacheDir= boost::filesystem::temp_directory_path(); |
| 263 | #endif |
| 264 | |
| 265 | return kernelCacheDir / "kernel_cache" / SanitizeFileName(applicationName); |
| 266 | } |
| 267 | |
| 268 | oclKernelPersistentCache::oclKernelPersistentCache(const string &applicationName) { |
| 269 | appName = applicationName; |
nothing calls this directly
no test coverage detected