| 641 | //----------------------------------------------------------------------------- |
| 642 | |
| 643 | bool AssetManager::isAssetPrivate( const char* pAssetId ) |
| 644 | { |
| 645 | // Find asset definition. |
| 646 | AssetDefinition* pAssetDefinition = findAsset( pAssetId ); |
| 647 | |
| 648 | // Did we find the asset? |
| 649 | if ( pAssetDefinition == NULL ) |
| 650 | { |
| 651 | // No, so warn. |
| 652 | Con::warnf( "Asset Manager: Cannot find asset Id '%s'.", pAssetId ); |
| 653 | return false; |
| 654 | } |
| 655 | |
| 656 | return pAssetDefinition->mAssetPrivate; |
| 657 | } |
| 658 | |
| 659 | //----------------------------------------------------------------------------- |
| 660 |
no test coverage detected