MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setScriptPathExpando

Function setScriptPathExpando

Engine/source/console/scriptFilename.cpp:52–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50//-----------------------------------------------------------------------------
51
52void setScriptPathExpando(const char *expando, const char *path, bool toolsOnly /*= false*/)
53{
54 PathExpando *exp = sgPathExpandos.retreive(expando);
55 if(exp)
56 {
57 exp->mPath = StringTable->insert(path);
58 exp->mIsToolsOnly = toolsOnly;
59 }
60 else
61 {
62 exp = new PathExpando;
63 exp->mPath = StringTable->insert(path);
64 exp->mIsToolsOnly = toolsOnly;
65 sgPathExpandos.insert(exp, expando);
66 }
67}
68
69void removeScriptPathExpando(const char *expando)
70{

Callers 1

scriptFilename.cppFile · 0.85

Calls 2

retreiveMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected