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

Function removePathExpando

Engine/source/console/console.cpp:1983–2010  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1981//-----------------------------------------------------------------------------
1982
1983void removePathExpando(const char* pExpandoName)
1984{
1985 // Sanity!
1986 AssertFatal(pExpandoName != NULL, "Expando name cannot be NULL.");
1987
1988 // Fetch expando name.
1989 StringTableEntry expandoName = StringTable->insert(pExpandoName);
1990
1991 // Find any existing path expando.
1992 typePathExpandoMap::iterator expandoItr = PathExpandos.find(expandoName);
1993
1994 // Does the expando exist?
1995 if (expandoItr == PathExpandos.end())
1996 {
1997 // No, so warn.
1998#if defined(TORQUE_DEBUG)
1999 Con::warnf("Removing path expando of '%s' but it does not exist.", expandoName);
2000#endif
2001 return;
2002 }
2003
2004 // Info.
2005#if defined(TORQUE_DEBUG)
2006 Con::printf("Removing path expando of '%s' as '%s'.", expandoName, expandoItr->value);
2007#endif
2008 // Remove expando.
2009 PathExpandos.erase(expandoItr);
2010}
2011
2012//-----------------------------------------------------------------------------
2013

Callers 2

unloadModuleGroupMethod · 0.85
unloadModuleExplicitMethod · 0.85

Calls 6

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

Tested by

no test coverage detected