MCPcopy Create free account
hub / github.com/ThirteenAG/WidescreenFixesPack / GetExeModuleName

Function GetExeModuleName

includes/stdafx.h:328–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326
327template<class T = std::filesystem::path>
328T 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
339template<class T = std::filesystem::path>
340T GetCurrentDirectoryW()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected