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

Function removePathExpando

Engine/source/console/console.cpp:2063–2090  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2061//-----------------------------------------------------------------------------
2062
2063void removePathExpando(const char* pExpandoName)
2064{
2065 // Sanity!
2066 AssertFatal(pExpandoName != NULL, "Expando name cannot be NULL.");
2067
2068 // Fetch expando name.
2069 StringTableEntry expandoName = StringTable->insert(pExpandoName);
2070
2071 // Find any existing path expando.
2072 typePathExpandoMap::iterator expandoItr = PathExpandos.find(expandoName);
2073
2074 // Does the expando exist?
2075 if (expandoItr == PathExpandos.end())
2076 {
2077 // No, so warn.
2078#if defined(TORQUE_DEBUG)
2079 Con::warnf("Removing path expando of '%s' but it does not exist.", expandoName);
2080#endif
2081 return;
2082 }
2083
2084 // Info.
2085#if defined(TORQUE_DEBUG)
2086 Con::printf("Removing path expando of '%s' as '%s'.", expandoName, expandoItr->value);
2087#endif
2088 // Remove expando.
2089 PathExpandos.erase(expandoItr);
2090}
2091
2092//-----------------------------------------------------------------------------
2093

Callers 2

unloadModuleGroupMethod · 0.85
unloadModuleExplicitMethod · 0.85

Calls 6

printfFunction · 0.85
warnfFunction · 0.70
insertMethod · 0.45
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected