| 623 | //----------------------------------------------------------------------------- |
| 624 | |
| 625 | bool AssetManager::isAssetInternal( const char* pAssetId ) |
| 626 | { |
| 627 | // Find asset definition. |
| 628 | AssetDefinition* pAssetDefinition = findAsset( pAssetId ); |
| 629 | |
| 630 | // Did we find the asset? |
| 631 | if ( pAssetDefinition == NULL ) |
| 632 | { |
| 633 | // No, so warn. |
| 634 | Con::warnf( "Asset Manager: Cannot find asset Id '%s'.", pAssetId ); |
| 635 | return false; |
| 636 | } |
| 637 | |
| 638 | return pAssetDefinition->mAssetInternal; |
| 639 | } |
| 640 | |
| 641 | //----------------------------------------------------------------------------- |
| 642 |
no test coverage detected