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

Function getPathExpando

Engine/source/console/console.cpp:1959–1979  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1957//-----------------------------------------------------------------------------
1958
1959StringTableEntry getPathExpando(const char* pExpandoName)
1960{
1961 // Sanity!
1962 AssertFatal(pExpandoName != NULL, "Expando name cannot be NULL.");
1963
1964 // Fetch expando name.
1965 StringTableEntry expandoName = StringTable->insert(pExpandoName);
1966
1967 // Find any existing path expando.
1968 typePathExpandoMap::iterator expandoItr = PathExpandos.find(expandoName);
1969
1970 // Does the expando exist?
1971 if (expandoItr != PathExpandos.end())
1972 {
1973 // Yes, so return it.
1974 return expandoItr->value;
1975 }
1976
1977 // Not found.
1978 return NULL;
1979}
1980
1981//-----------------------------------------------------------------------------
1982

Callers 1

expandPathFunction · 0.85

Calls 3

insertMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected