Enable atmosphere on default

Add try/catch around CacheManager creation to catch potential Exceptions when directories are created
This commit is contained in:
Alexander Bock
2018-01-04 16:52:37 -05:00
parent 1826218c9d
commit 237affa80d
2 changed files with 8 additions and 2 deletions

View File

@@ -1 +1 @@
#set (DEFAULT_MODULE ON)
set (DEFAULT_MODULE ON)

View File

@@ -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}"));