summaryrefslogtreecommitdiff
path: root/src/Companion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Companion.cpp')
-rw-r--r--src/Companion.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp
index a38a312..eb4b2b2 100644
--- a/src/Companion.cpp
+++ b/src/Companion.cpp
@@ -1372,7 +1372,7 @@ std::optional<std::tuple<std::string, YAML::Node>> Companion::RegisterAsset(cons
spdlog::set_pattern(regular);
SPDLOG_INFO("------------------------------------------------");
spdlog::set_pattern(line);
-
+
return entry;
}
@@ -1590,13 +1590,13 @@ std::string Companion::RelativePath(const std::string& path) const {
}
std::string Companion::RelativePathToDestDir(const std::string& path) const {
- std::string doutput = relative(path, this->gDestinationDirectory).string();
+ std::string doutput = fs::path(path).lexically_relative(this->gDestinationDirectory).string();
ConvertWinToUnixSlash(doutput);
return doutput;
}
std::string Companion::RelativePathToSrcDir(const std::string& path) const {
- std::string doutput = relative(path, this->gSourceDirectory).string();
+ std::string doutput = fs::path(path).lexically_relative(this->gSourceDirectory).string();
ConvertWinToUnixSlash(doutput);
return doutput;
}