| 212 | } |
| 213 | |
| 214 | void Tr2GrannyPrimitiveSet::SetGrannyResource() |
| 215 | { |
| 216 | if( m_grannyRes ) |
| 217 | { |
| 218 | m_grannyRes->RemoveNotifyTarget( this ); |
| 219 | m_grannyRes.Unlock(); |
| 220 | } |
| 221 | |
| 222 | if( !m_grannyResPath.empty() ) |
| 223 | { |
| 224 | BeResMan->GetResource( m_grannyResPath.c_str(), "raw", m_grannyRes ); |
| 225 | } |
| 226 | else |
| 227 | { |
| 228 | ReleaseCachedData( m_grannyRes ); |
| 229 | } |
| 230 | |
| 231 | if( m_grannyRes ) |
| 232 | { |
| 233 | m_grannyRes->AddNotifyTarget( this ); |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | void Tr2GrannyPrimitiveSet::CreatePrimitive() |
| 238 | { |
nothing calls this directly
no test coverage detected