Issue/1299 (#1312)

Change profile file format from a custom one to JSON
This commit is contained in:
Alexander Bock
2020-10-09 17:32:30 +02:00
committed by GitHub
parent 660d2b6311
commit 50a456b87f
161 changed files with 2366 additions and 1766 deletions

View File

@@ -318,12 +318,10 @@ void OpenSpaceEngine::initialize() {
);
}
std::vector<std::string> content;
std::string line;
while (std::getline(inFile, line)) {
content.push_back(std::move(line));
}
std::string content(
(std::istreambuf_iterator<char>(inFile)),
std::istreambuf_iterator<char>()
);
global::profile = Profile(content);
// Then save the profile to a scene so that we can load it with the