| 51 | } |
| 52 | |
| 53 | static fs::path autoDetectLocoInstallPath() |
| 54 | { |
| 55 | static constexpr const char* kSearchPaths[] = { |
| 56 | "C:/Program Files (x86)/Atari/Locomotion", |
| 57 | "C:/GOG Games/Chris Sawyer's Locomotion", |
| 58 | "C:/GOG Games/Locomotion", |
| 59 | "C:/Program Files/Steam/steamapps/common/Locomotion", |
| 60 | "C:/Program Files (x86)/Steam/steamapps/common/Locomotion", |
| 61 | }; |
| 62 | |
| 63 | Logging::info("Searching for Locomotion install path..."); |
| 64 | for (auto path : kSearchPaths) |
| 65 | { |
| 66 | if (validateLocoInstallPath(path)) |
| 67 | { |
| 68 | Logging::info(" found: {}", path); |
| 69 | return path; |
| 70 | } |
| 71 | } |
| 72 | return fs::path(); |
| 73 | } |
| 74 | |
| 75 | static fs::path resolveLocoInstallPath() |
| 76 | { |
no test coverage detected