| 132 | } |
| 133 | |
| 134 | std::filesystem::path GetCurrentExecutablePath() { |
| 135 | static LazyPath sPath {[]() { |
| 136 | wchar_t exePathStr[MAX_PATH]; |
| 137 | const auto exePathStrLen = GetModuleFileNameW(NULL, exePathStr, MAX_PATH); |
| 138 | return std::filesystem::canonical( |
| 139 | std::wstring_view {exePathStr, exePathStrLen}); |
| 140 | }}; |
| 141 | return sPath; |
| 142 | } |
| 143 | |
| 144 | std::filesystem::path GetRuntimeDirectory() { |
| 145 | static LazyPath sPath { |
no outgoing calls
no test coverage detected