mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-12 14:40:00 -06:00
Feature/configuration (#605)
* Switch openspace.cfg file from a Dictionary-based loading to a variable based loading * Change ConfigurationManager to not use Dictionary anymore, but a struct with explicit configuration values instead
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
#include <ghoul/lua/lua_helper.h>
|
||||
#include <ghoul/misc/exception.h>
|
||||
|
||||
#include <openspace/engine/configurationmanager.h>
|
||||
#include <openspace/engine/configuration.h>
|
||||
#include <openspace/engine/openspaceengine.h>
|
||||
#include <openspace/network/parallelpeer.h>
|
||||
#include <openspace/util/syncbuffer.h>
|
||||
@@ -587,16 +587,8 @@ bool ScriptEngine::writeLog(const std::string& script) {
|
||||
// Check that logging is enabled and initialize if necessary
|
||||
if (!_logFileExists) {
|
||||
// If a ScriptLogFile was specified, generate it now
|
||||
const bool hasFile = OsEng.configurationManager().hasKey(
|
||||
ConfigurationManager::KeyScriptLog
|
||||
);
|
||||
if (hasFile) {
|
||||
OsEng.configurationManager().getValue(
|
||||
ConfigurationManager::KeyScriptLog,
|
||||
_logFilename
|
||||
);
|
||||
|
||||
_logFilename = absPath(_logFilename);
|
||||
if (!OsEng.configuration().scriptLog.empty()) {
|
||||
_logFilename = absPath(OsEng.configuration().scriptLog);
|
||||
_logFileExists = true;
|
||||
|
||||
LDEBUG(fmt::format(
|
||||
|
||||
Reference in New Issue
Block a user