Added json entry for sgct config generator version

This commit is contained in:
GPayne
2022-04-08 11:41:30 -06:00
parent d0d918cdae
commit f7588f67b6
2 changed files with 10 additions and 2 deletions

View File

@@ -27,6 +27,7 @@
#include "profile/profileedit.h"
#include <openspace/engine/configuration.h>
#include <openspace/openspace.h>
#include <ghoul/filesystem/filesystem.h>
#include <ghoul/fmt.h>
#include <ghoul/logging/logmanager.h>
@@ -148,7 +149,14 @@ namespace {
std::ofstream outFile;
try {
outFile.open(path, std::ofstream::out);
outFile << sgct::serializeConfig(cluster);
outFile << sgct::serializeConfig(
cluster,
{
"OpenSpace",
OPENSPACE_VERSION_MAJOR,
OPENSPACE_VERSION_MINOR
}
);
}
catch (const std::ofstream::failure& e) {
QMessageBox::critical(