| 48 | |
| 49 | |
| 50 | BlueAsyncRes::LoadingResult Tr2GrannyStateRes::DoLoad() |
| 51 | { |
| 52 | CCP_STATS_ZONE( __FUNCTION__ ); |
| 53 | |
| 54 | if( !m_dataStream->LockData( &m_data, 0 ) ) |
| 55 | { |
| 56 | return LR_FAILED; |
| 57 | } |
| 58 | |
| 59 | m_dataSize = m_dataStream->GetSize(); |
| 60 | |
| 61 | { |
| 62 | if( m_characterFile ) |
| 63 | { |
| 64 | GrannyFreeFile( m_characterFile ); |
| 65 | m_characterFile = NULL; |
| 66 | } |
| 67 | |
| 68 | CCP_STATS_ZONE( "Tr2GrannyStateRes::DoLoad reading Granny file" ); |
| 69 | m_characterFile = ProtectedGrannyReadEntireFileFromMemory( m_path.c_str(), (uint32_t)m_dataSize, m_data ); |
| 70 | } |
| 71 | if( !m_characterFile ) |
| 72 | { |
| 73 | return LR_FAILED; |
| 74 | } |
| 75 | |
| 76 | return LR_SUCCESS; |
| 77 | } |
| 78 | |
| 79 | |
| 80 | std::string GetFullAnimPath( std::string SourceFilenameString, std::string dir_path ) |
nothing calls this directly
no test coverage detected