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

Function GetSecondaryCMFFileInfo

trinity/Tr2GrannyAnimation.cpp:138–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136#endif
137
138const cmf::Data* GetSecondaryCMFFileInfo( const std::string& cmfResPath, const TriGrannyResPtr grannyPtr )
139{
140 if( !grannyPtr || !grannyPtr->IsPrepared() )
141 {
142 return nullptr;
143 }
144 CCP_ASSERT( grannyPtr->IsUsingCMF() );
145 auto cmfData = grannyPtr->GetCMFData();
146 if( !cmfData )
147 {
148 CCP_LOGERR( "'%s' is not a valid CMF file", cmfResPath.c_str() );
149 }
150 return cmfData;
151}
152
153#if WITH_GRANNY
154granny_file_info* GetSecondaryFileInfo( const std::string& grannyResPath, const TriGrannyResPtr grannyPtr )

Callers 2

GetAnimationNamesMethod · 0.85

Calls 2

IsUsingCMFMethod · 0.45
GetCMFDataMethod · 0.45

Tested by

no test coverage detected