MCPcopy Create free account
hub / github.com/beefytech/Beef / BfpSystem_GetExecutablePath

Function BfpSystem_GetExecutablePath

BeefySysLib/platform/win/Platform.cpp:1155–1162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1153}
1154
1155BFP_EXPORT void BFP_CALLTYPE BfpSystem_GetExecutablePath(char* outStr, int* inOutStrSize, BfpSystemResult* outResult)
1156{
1157 WCHAR path[MAX_PATH];
1158 GetModuleFileNameW(NULL, path, MAX_PATH);
1159
1160 String env = UTF8Encode(path);
1161 TryStringOut(env, outStr, inOutStrSize, (BfpResult*)outResult);
1162}
1163
1164BFP_EXPORT void BFP_CALLTYPE BfpSystem_GetEnvironmentStrings(char* outStr, int* inOutStrSize, BfpSystemResult* outResult)
1165{

Callers 6

InitMethod · 0.50
SdlBFAppMethod · 0.50
PrepareCompilerMethod · 0.50
HandleCmdLineMethod · 0.50
CompileMethod · 0.50
DoBfLogMethod · 0.50

Calls 1

TryStringOutFunction · 0.85

Tested by

no test coverage detected