| 1981 | //----------------------------------------------------------------------------- |
| 1982 | |
| 1983 | void 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 | |