mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-21 18:38:20 -05:00
Feature/new formatting (#547)
* Change to new logging format (closes #542) * Adds a screenshots folder that uses the application startup time * Creating focus nodes for VRT files if the info files contain location information * Fix issue with removing virtual properties * Add a method for returning the cartesian coordinates for a geolocation on a planet
This commit is contained in:
@@ -30,11 +30,13 @@
|
||||
#include <openspace/util/time.h>
|
||||
|
||||
#include <ghoul/filesystem/directory.h>
|
||||
#include <ghoul/filesystem/file.h>
|
||||
#include <ghoul/filesystem/filesystem.h>
|
||||
#include <ghoul/io/texture/texturereader.h>
|
||||
#include <ghoul/logging/logmanager.h>
|
||||
#include <ghoul/misc/dictionary.h>
|
||||
|
||||
#include <ghoul/fmt.h>
|
||||
#include <fstream>
|
||||
#include <iterator>
|
||||
#include <iomanip>
|
||||
@@ -159,7 +161,7 @@ bool LabelParser::create() {
|
||||
using RawPath = ghoul::filesystem::Directory::RawPath;
|
||||
ghoul::filesystem::Directory sequenceDir(_fileName, RawPath::Yes);
|
||||
if (!FileSys.directoryExists(sequenceDir)) {
|
||||
LERROR("Could not load Label Directory '" << sequenceDir.path() << "'");
|
||||
LERROR(fmt::format("Could not load Label Directory '{}'", sequenceDir.path()));
|
||||
return false;
|
||||
}
|
||||
using Recursive = ghoul::filesystem::Directory::Recursive;
|
||||
@@ -173,10 +175,10 @@ bool LabelParser::create() {
|
||||
if (extension == "lbl" || extension == "LBL") { // discovered header file
|
||||
std::ifstream file(currentFile.path());
|
||||
|
||||
if (!file.good()){
|
||||
LERROR(
|
||||
"Failed to open label file '" << currentFile.path() << "'"
|
||||
);
|
||||
if (!file.good()) {
|
||||
LERROR(fmt::format(
|
||||
"Failed to open label file '{}'", currentFile.path()
|
||||
));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user