MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetMainDirectory

Method GetMainDirectory

Source/Engine/Platform/Win32/Win32Platform.cpp:466–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464}
465
466String Win32Platform::GetMainDirectory()
467{
468 Char buffer[MAX_PATH];
469 GetModuleFileNameW(nullptr, buffer, MAX_PATH);
470 const String str(buffer);
471 int32 pos = str.FindLast(TEXT('\\'));
472 if (pos != -1 && ++pos < str.Length())
473 return str.Left(pos);
474 return str;
475}
476
477String Win32Platform::GetExecutableFilePath()
478{

Callers

nothing calls this directly

Calls 3

LeftMethod · 0.80
FindLastMethod · 0.45
LengthMethod · 0.45

Tested by

no test coverage detected