| 563 | //----------------------------------------------------------------------------- |
| 564 | |
| 565 | StringTableEntry 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 |
no test coverage detected