| 30 | #endif |
| 31 | |
| 32 | static bool validateLocoInstallPath(const fs::path& path) |
| 33 | { |
| 34 | if (path.empty()) |
| 35 | { |
| 36 | return false; |
| 37 | } |
| 38 | else |
| 39 | { |
| 40 | auto g1Path = path / getSubPath(PathId::g1); |
| 41 | bool g1Exists = fs::exists(g1Path); |
| 42 | #ifndef _WIN32 |
| 43 | if (!g1Exists) |
| 44 | { |
| 45 | g1Path = findSimilarFile(g1Path); |
| 46 | g1Exists = !g1Path.empty(); |
| 47 | } |
| 48 | #endif |
| 49 | return g1Exists; |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | static fs::path autoDetectLocoInstallPath() |
| 54 | { |
no test coverage detected