MCPcopy Create free account
hub / github.com/OpenKneeboard/OpenKneeboard / GetCurrentExecutablePath

Function GetCurrentExecutablePath

src/lib/Filesystem.cpp:134–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134std::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
144std::filesystem::path GetRuntimeDirectory() {
145 static LazyPath sPath {

Callers 4

FatalAndDumpFunction · 0.85
GetRuntimeDirectoryFunction · 0.85
GetVRAMInfoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected