| 194 | |
| 195 | |
| 196 | bool Tr2GStateAnimation::Initialize() |
| 197 | { |
| 198 | Cleanup(); |
| 199 | |
| 200 | if( m_gStateRes ) |
| 201 | { |
| 202 | m_gStateRes->RemoveNotifyTarget( this ); |
| 203 | m_gStateRes.Unlock(); |
| 204 | } |
| 205 | |
| 206 | BeResMan->GetResource( m_gStateResPath.c_str(), "raw", BlueInterfaceIID<Tr2GrannyStateRes>(), (void**)&m_gStateRes ); |
| 207 | |
| 208 | if( m_gStateRes ) |
| 209 | { |
| 210 | m_gStateRes->AddNotifyTarget( this ); |
| 211 | } |
| 212 | |
| 213 | return true; |
| 214 | } |
| 215 | |
| 216 | void Tr2GStateAnimation::ReleaseCachedData( BlueAsyncRes* p ) |
| 217 | { |
nothing calls this directly
no test coverage detected