Update Ghoul

Adapted to new ghoul version
This commit is contained in:
Alexander Bock
2015-12-02 22:47:15 -05:00
parent 0006e83f4b
commit ba35b834f7
3 changed files with 16 additions and 8 deletions
+4 -2
View File
@@ -78,8 +78,10 @@ bool ConfigurationManager::loadFromFile(const std::string& filename) {
FileSys.registerPathToken(basePathToken, basePath);
// Loading the configuration file into ourselves
const bool loadingSuccess = ghoul::lua::loadDictionaryFromFile(filename, *this);
if (!loadingSuccess) {
try {
ghoul::lua::loadDictionaryFromFile(filename, *this);
}
catch (...) {
LERROR("Loading dictionary from file failed");
return false;
}