| 605 | //----------------------------------------------------------------------------- |
| 606 | |
| 607 | ModuleDefinition* AssetManager::getAssetModuleDefinition( const char* pAssetId ) |
| 608 | { |
| 609 | // Find asset definition. |
| 610 | AssetDefinition* pAssetDefinition = findAsset( pAssetId ); |
| 611 | |
| 612 | // Did we find the asset? |
| 613 | if ( pAssetDefinition == NULL ) |
| 614 | { |
| 615 | // No, so warn. |
| 616 | Con::warnf( "Asset Manager: Cannot find asset Id '%s'.", pAssetId ); |
| 617 | return NULL; |
| 618 | } |
| 619 | |
| 620 | return pAssetDefinition->mpModuleDefinition; |
| 621 | } |
| 622 | |
| 623 | //----------------------------------------------------------------------------- |
| 624 |
no test coverage detected