juk3n/fluffypublic Fork
⑂ aa0bddd
Commits
⬇ Clone ▾
git clone https://git.rickub.com/juk3n/fluffy.git
git clone ssh://git@rickub.com/juk3n/fluffy.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

added findig real path

juk3n committed 2024-06-15T09:28:15+02:00 Browse files
aa0bddd parent: c520d85
modified src/main.cpp +1 -1
@@ -104,7 +104,7 @@ int main(int argc, char const *argv[]) {
104104 std::string command{ argv[1] };
105105 std::string gameName{ argv[2] };
106106 auto localPath = std::filesystem::path(argv[3]);
107- std::string globalPath = std::filesystem::absolute(localPath).string();
107+ std::string globalPath = std::filesystem::absolute(localPath).lexically_normal().string();
108108
109109 std::string temp{};
110110 for (const auto a : globalPath) {
@@ -104,7 +104,7 @@ int main(int argc, char const *argv[]) {
104 std::string command{ argv[1] };104 std::string command{ argv[1] };
105 std::string gameName{ argv[2] };105 std::string gameName{ argv[2] };
106 auto localPath = std::filesystem::path(argv[3]);106 auto localPath = std::filesystem::path(argv[3]);
107- std::string globalPath = std::filesystem::absolute(localPath).string();107+ std::string globalPath = std::filesystem::absolute(localPath).lexically_normal().string();
108 108
109 std::string temp{};109 std::string temp{};
110 for (const auto a : globalPath) {110 for (const auto a : globalPath) {