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

Method isAssetInternal

Engine/source/assets/assetManager.cpp:625–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623//-----------------------------------------------------------------------------
624
625bool 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

Callers 1

Calls 1

warnfFunction · 0.50

Tested by

no test coverage detected