Merge branch 'feature/genVersion'

This commit is contained in:
Alexander Bock
2022-04-08 22:19:53 +02:00
2 changed files with 11 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,15 @@ namespace {
std::ofstream outFile;
try {
outFile.open(path, std::ofstream::out);
outFile << sgct::serializeConfig(cluster);
sgct::config::GeneratorVersion genEntry = {
"OpenSpace",
OPENSPACE_VERSION_MAJOR,
OPENSPACE_VERSION_MINOR
};
outFile << sgct::serializeConfig(
cluster,
genEntry
);
}
catch (const std::ofstream::failure& e) {
QMessageBox::critical(