MCPcopy Create free account
hub / github.com/PlayFab/gsdk / getExecutableDirectory

Function getExecutableDirectory

cpp/testapps/cppWindowsRunnerGame/main.cpp:95–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 WideCharToMultiByte(CP_ACP, 0, pathBuffer, -1, ch, 260, &DefChar, NULL);
94 return std::string(ch);
95}
96
97std::string getExecutableDirectory()
98{
99 std::string path = getExecutablePath();
100 int lastIndex = path.find_last_of('\\');
101 return path.substr(0, lastIndex);
102}
103

Callers 1

mainFunction · 0.85

Calls 1

getExecutablePathFunction · 0.85

Tested by

no test coverage detected