MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetFileInfo

Method GetFileInfo

trinity/Tr2GrannyAnimation.cpp:366–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364
365#if WITH_GRANNY
366granny_file_info* Tr2GrannyAnimation::GetFileInfo() const
367{
368 if( m_grannyRes )
369 {
370 // when using a standalone granny file, it's supposed to have an animation
371 // track, so complain if it doesn't.
372 granny_file_info* const fi = GrannyGetFileInfo( m_grannyRes->GetGrannyFile() );
373 if( !fi )
374 {
375 CCP_LOGERR( "'%s' is not a valid Granny file", m_resPath.c_str() );
376 }
377 return fi;
378 }
379
380 // when using a shared geometryRes, there may not be an animation, or the
381 // granny file isn't loaded yet. Silently fail.
382 if( m_geometryRes )
383 {
384 return m_geometryRes->GetGrannyInfo();
385 }
386
387 return nullptr;
388}
389#endif
390
391bool Tr2GrannyAnimation::IsUsingCMF() const

Callers

nothing calls this directly

Calls 1

GetGrannyInfoMethod · 0.80

Tested by

no test coverage detected