| 268 | |
| 269 | |
| 270 | void Tr2GrannyStateRes::LoadAnimResPath( const std::string& val ) |
| 271 | { |
| 272 | auto it = m_gStateAnimFiles.find( val ); |
| 273 | if( it != m_gStateAnimFiles.end() ) |
| 274 | { |
| 275 | it->second->RemoveNotifyTarget( this ); |
| 276 | it->second.Unlock(); |
| 277 | } |
| 278 | |
| 279 | TriGrannyResPtr granny_res; |
| 280 | BeResMan->GetResource( val.c_str(), "raw", BlueInterfaceIID<TriGrannyRes>(), (void**)&granny_res ); |
| 281 | |
| 282 | m_gStateAnimFiles[val] = granny_res; |
| 283 | |
| 284 | if( granny_res ) |
| 285 | { |
| 286 | granny_res->AddNotifyTarget( this ); |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | #endif |
nothing calls this directly
no test coverage detected