MCPcopy Create free account
hub / github.com/apitrace/apitrace / findProgram

Function findProgram

cli/cli_resources.cpp:67–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67os::String
68findProgram(const char *programFilename, bool verbose)
69{
70 os::String programPath;
71
72 os::String processDir = os::getProcessName();
73 processDir.trimFilename();
74
75 programPath = processDir;
76 programPath.join(programFilename);
77 if (tryPath(programPath, verbose)) {
78 return programPath;
79 }
80
81#ifndef _WIN32
82 // Try absolute install directory
83 programPath = APITRACE_PROGRAMS_INSTALL_DIR;
84 programPath.join(programFilename);
85 if (tryPath(programPath, verbose)) {
86 return programPath;
87 }
88#endif
89
90 return "";
91}
92
93os::String
94findWrapper(const char *wrapperFilename, bool verbose)

Callers 2

executeGLTrimFunction · 0.85
executeRetraceFunction · 0.85

Calls 2

tryPathFunction · 0.85
getProcessNameFunction · 0.50

Tested by

no test coverage detected