| 2061 | //----------------------------------------------------------------------------- |
| 2062 | |
| 2063 | void 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 | |