| 312 | |
| 313 | template<class T = std::filesystem::path> |
| 314 | T GetExeModulePath() |
| 315 | { |
| 316 | T r = GetModulePath<T>(NULL); |
| 317 | |
| 318 | if constexpr (std::is_same_v<T, std::filesystem::path>) |
| 319 | return r.parent_path(); |
| 320 | else if constexpr (std::is_same_v<T, std::string>) |
| 321 | r = r.substr(0, r.find_last_of("/\\") + 1); |
| 322 | else |
| 323 | r = r.substr(0, r.find_last_of(L"/\\") + 1); |
| 324 | return r; |
| 325 | } |
| 326 | |
| 327 | template<class T = std::filesystem::path> |
| 328 | T GetExeModuleName() |
no outgoing calls
no test coverage detected