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

Method getAssetFilePath

Engine/source/assets/assetManager.cpp:565–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563//-----------------------------------------------------------------------------
564
565StringTableEntry AssetManager::getAssetFilePath( const char* pAssetId )
566{
567 // Find asset definition.
568 AssetDefinition* pAssetDefinition = findAsset( pAssetId );
569
570 // Did we find the asset?
571 if ( pAssetDefinition == NULL )
572 {
573 // No, so warn.
574 Con::warnf( "Asset Manager: Cannot find asset Id '%s'.", pAssetId );
575 return StringTable->EmptyString();
576 }
577
578 return pAssetDefinition->mAssetBaseFilePath;
579}
580
581//-----------------------------------------------------------------------------
582

Callers 2

saveAssetMethod · 0.80

Calls 2

EmptyStringMethod · 0.80
warnfFunction · 0.50

Tested by

no test coverage detected