Clean up of LuaConsole class

This commit is contained in:
Alexander Bock
2015-02-15 17:56:07 +01:00
parent 55f7b0fc03
commit 86b754f313
3 changed files with 68 additions and 115 deletions
+2 -1
View File
@@ -179,7 +179,7 @@ bool OpenSpaceEngine::create(int argc, char** argv,
// Create the cachemanager
FileSys.createCacheManager(absPath("${" + constants::configurationmanager::keyCache + "}"));
_engine->_console.loadHistory();
_engine->_console.initialize();
// Register the provided shader directories
ghoul::opengl::ShaderObject::addIncludePath("${SHADERS}");
@@ -208,6 +208,7 @@ bool OpenSpaceEngine::create(int argc, char** argv,
}
void OpenSpaceEngine::destroy() {
_engine->_console.deinitialize();
delete _engine;
ghoul::systemcapabilities::SystemCapabilities::deinitialize();
FactoryManager::deinitialize();