MCPcopy Create free account
hub / github.com/BabylonJS/BabylonNative / GetModulePath

Function GetModulePath

Apps/ValidationTests/X11/App.cpp:30–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace
29{
30 std::filesystem::path GetModulePath()
31 {
32 char exe[1024];
33
34 int ret = readlink("/proc/self/exe", exe, sizeof(exe)-1);
35 if(ret == -1)
36 {
37 exit(1);
38 }
39 exe[ret] = 0;
40 return std::filesystem::path{exe};
41 }
42
43 std::string GetUrlFromPath(const std::filesystem::path path)
44 {

Callers 2

InitBabylonFunction · 0.70
GetWorkingDirectoryMethod · 0.50

Calls

no outgoing calls

Tested by 1

GetWorkingDirectoryMethod · 0.40