| 110 | } |
| 111 | |
| 112 | static file::Path getCacheDir() |
| 113 | { |
| 114 | if (const char* dir = std::getenv(skyboltCacheDirEnvironmentVariable.c_str()); dir) |
| 115 | { |
| 116 | file::Path path(dir); |
| 117 | if (std::filesystem::exists(path)) |
| 118 | { |
| 119 | return dir; |
| 120 | } |
| 121 | BOOST_LOG_TRIVIAL(error) << "Environment variable '" << skyboltCacheDirEnvironmentVariable << "' not set to a valid path. Using default location: " << getDefaultCacheDir().string(); |
| 122 | } |
| 123 | return getDefaultCacheDir(); |
| 124 | } |
| 125 | |
| 126 | EngineRoot::EngineRoot(const EngineRootConfig& config) : |
| 127 | scheduler(new px_sched::Scheduler), |
no test coverage detected