MCPcopy Create free account
hub / github.com/Prograda/Skybolt / getCacheDir

Function getCacheDir

src/Skybolt/SkyboltEngine/EngineRoot.cpp:112–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112static 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
126EngineRoot::EngineRoot(const EngineRootConfig& config) :
127 scheduler(new px_sched::Scheduler),

Callers 1

EngineRootMethod · 0.85

Calls 1

getDefaultCacheDirFunction · 0.85

Tested by

no test coverage detected