| 136 | #endif |
| 137 | |
| 138 | const 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 |
| 154 | granny_file_info* GetSecondaryFileInfo( const std::string& grannyResPath, const TriGrannyResPtr grannyPtr ) |
no test coverage detected