mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -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:
@@ -1 +1 @@
|
||||
#set (DEFAULT_MODULE ON)
|
||||
set (DEFAULT_MODULE ON)
|
||||
|
||||
@@ -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