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

Function getPathExpando

Engine/source/console/console.cpp:2039–2059  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2037//-----------------------------------------------------------------------------
2038
2039StringTableEntry getPathExpando(const char* pExpandoName)
2040{
2041 // Sanity!
2042 AssertFatal(pExpandoName != NULL, "Expando name cannot be NULL.");
2043
2044 // Fetch expando name.
2045 StringTableEntry expandoName = StringTable->insert(pExpandoName);
2046
2047 // Find any existing path expando.
2048 typePathExpandoMap::iterator expandoItr = PathExpandos.find(expandoName);
2049
2050 // Does the expando exist?
2051 if (expandoItr != PathExpandos.end())
2052 {
2053 // Yes, so return it.
2054 return expandoItr->value;
2055 }
2056
2057 // Not found.
2058 return NULL;
2059}
2060
2061//-----------------------------------------------------------------------------
2062

Callers 1

expandPathFunction · 0.85

Calls 3

insertMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected