| 326 | |
| 327 | template<class T = std::filesystem::path> |
| 328 | T GetExeModuleName() |
| 329 | { |
| 330 | const T moduleFileName = GetModulePath<T>(NULL); |
| 331 | if constexpr (std::is_same_v<T, std::filesystem::path>) |
| 332 | return moduleFileName.filename(); |
| 333 | else if constexpr (std::is_same_v<T, std::string>) |
| 334 | return moduleFileName.substr(moduleFileName.find_last_of("/\\") + 1); |
| 335 | else |
| 336 | return moduleFileName.substr(moduleFileName.find_last_of(L"/\\") + 1); |
| 337 | } |
| 338 | |
| 339 | template<class T = std::filesystem::path> |
| 340 | T GetCurrentDirectoryW() |
nothing calls this directly
no outgoing calls
no test coverage detected