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

Function removePathExpando

engine/source/console/console.cc:1320–1347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1318//-----------------------------------------------------------------------------
1319
1320void removePathExpando( const char* pExpandoName )
1321{
1322 // Sanity!
1323 AssertFatal( pExpandoName != NULL, "Expando name cannot be NULL." );
1324
1325 // Fetch expando name.
1326 StringTableEntry expandoName = StringTable->insert( pExpandoName );
1327
1328 // Find any existing path expando.
1329 typePathExpandoMap::iterator expandoItr = PathExpandos.find( expandoName );
1330
1331 // Does the expando exist?
1332 if ( expandoItr == PathExpandos.end() )
1333 {
1334 // No, so warn.
1335 #if defined(TORQUE_DEBUG)
1336 Con::warnf("Removing path expando of '%s' but it does not exist.", expandoName );
1337 #endif
1338 return;
1339 }
1340
1341 // Info.
1342 #if defined(TORQUE_DEBUG)
1343 Con::printf("Removing path expando of '%s' as '%s'.", expandoName, expandoItr->value );
1344 #endif
1345 // Remove expando.
1346 PathExpandos.erase( expandoItr );
1347}
1348
1349//-----------------------------------------------------------------------------
1350

Callers 3

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