MCPcopy Create free account
hub / github.com/carbonengine/trinity / LoadAnimResPath

Method LoadAnimResPath

trinity/Resources/Tr2GrannyStateRes.cpp:270–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268
269
270void 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

Callers

nothing calls this directly

Calls 5

RemoveNotifyTargetMethod · 0.80
AddNotifyTargetMethod · 0.80
endMethod · 0.45
UnlockMethod · 0.45
GetResourceMethod · 0.45

Tested by

no test coverage detected