MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / setAdditionalSearchPath

Method setAdditionalSearchPath

examples/Utils/b3ResourcePath.cpp:73–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71static char sAdditionalSearchPath[B3_MAX_EXE_PATH_LEN] = {0};
72
73void b3ResourcePath::setAdditionalSearchPath(const char* path)
74{
75 if (path)
76 {
77 int len = strlen(path);
78 if (len < (B3_MAX_EXE_PATH_LEN - 1))
79 {
80 strcpy(sAdditionalSearchPath, path);
81 sAdditionalSearchPath[len] = 0;
82 }
83 }
84 else
85 {
86 sAdditionalSearchPath[0] = 0;
87 }
88}
89
90bool b3MyFindFile(void* userPointer, const char* orgFileName, char* relativeFileName, int maxRelativeFileNameMaxLen)
91{

Callers 15

sceneAabb.pyFile · 0.45
jacobian.pyFile · 0.45
grpcServer.pyFile · 0.45
hello_pybullet.pyFile · 0.45
vrminitaur.pyFile · 0.45
hand.pyFile · 0.45

Calls

no outgoing calls

Tested by 3

__enter__Method · 0.36
mainFunction · 0.36
testFunction · 0.36