mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-28 23:19:35 -06:00
Enable atmosphere on default
Add try/catch around CacheManager creation to catch potential Exceptions when directories are created
This commit is contained in:
@@ -396,7 +396,13 @@ void OpenSpaceEngine::create(int argc, char** argv,
|
||||
}
|
||||
|
||||
// Create the cachemanager
|
||||
FileSys.createCacheManager(cacheFolder, CacheVersion);
|
||||
try {
|
||||
FileSys.createCacheManager(cacheFolder, CacheVersion);
|
||||
}
|
||||
catch (const ghoul::RuntimeError& e) {
|
||||
LFATAL("Could not create Cache Manager");
|
||||
LFATALC(e.component, e.message);
|
||||
}
|
||||
|
||||
// Register the provided shader directories
|
||||
ghoul::opengl::ShaderPreprocessor::addIncludePath(absPath("${SHADERS}"));
|
||||
|
||||
Reference in New Issue
Block a user