| 12 | |
| 13 | |
| 14 | static bool IsValidDbgEngPaths(const std::string& path) |
| 15 | { |
| 16 | if (path.empty()) |
| 17 | return false; |
| 18 | |
| 19 | auto enginePath = filesystem::path(path); |
| 20 | if (!filesystem::exists(enginePath)) |
| 21 | return false; |
| 22 | |
| 23 | if (!filesystem::exists(enginePath / "dbgeng.dll")) |
| 24 | return false; |
| 25 | |
| 26 | if (!filesystem::exists(enginePath / "dbghelp.dll")) |
| 27 | return false; |
| 28 | |
| 29 | if (!filesystem::exists(enginePath / "dbgmodel.dll")) |
| 30 | return false; |
| 31 | |
| 32 | if (!filesystem::exists(enginePath / "dbgcore.dll")) |
| 33 | return false; |
| 34 | |
| 35 | if (!filesystem::exists(enginePath / "dbgsrv.exe")) |
| 36 | return false; |
| 37 | |
| 38 | if (!filesystem::exists(enginePath / "ttd")) |
| 39 | return false; |
| 40 | |
| 41 | if (!filesystem::exists(enginePath / "ttd" / "TTDReplay.dll")) |
| 42 | return false; |
| 43 | |
| 44 | return true; |
| 45 | } |
| 46 | |
| 47 | |
| 48 | std::string DbgEngTTDAdapter::GetDbgEngPath(const std::string& arch) |