added findig real path
aa0bddd parent: c520d85 modified
src/main.cpp +1 -1 | @@ -104,7 +104,7 @@ int main(int argc, char const *argv[]) { | ||
| 104 | 104 | std::string command{ argv[1] }; |
| 105 | 105 | std::string gameName{ argv[2] }; |
| 106 | 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 | 109 | std::string temp{}; |
| 110 | 110 | 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) { |