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

Function GetSecondaryFileInfo

trinity/Tr2GrannyAnimation.cpp:154–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152
153#if WITH_GRANNY
154granny_file_info* GetSecondaryFileInfo( const std::string& grannyResPath, const TriGrannyResPtr grannyPtr )
155{
156 if( !grannyPtr || !grannyPtr->IsPrepared() )
157 {
158 return nullptr;
159 }
160 CCP_ASSERT( !grannyPtr->IsUsingCMF() );
161 granny_file_info* const fi = GrannyGetFileInfo( grannyPtr->GetGrannyFile() );
162 if( !fi )
163 {
164 CCP_LOGERR( "'%s' is not a valid Granny file", grannyResPath.c_str() );
165 }
166 return fi;
167}
168#endif
169
170const cmf::Animation* Tr2GrannyAnimation::FindCMFAnimationByName( const char* name ) const

Callers 2

GetAnimationNamesMethod · 0.85

Calls 1

IsUsingCMFMethod · 0.45

Tested by

no test coverage detected