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

Function GetExeModulePath

includes/stdafx.h:314–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312
313template<class T = std::filesystem::path>
314T 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
327template<class T = std::filesystem::path>
328T GetExeModuleName()

Callers 6

InitFunction · 0.85
__fastcall sub_10CC8580Function · 0.85
InitializeASIFunction · 0.85
InitFunction · 0.85
InitFunction · 0.85
InitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected