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

Method LoadSecondaryResPath

trinity/Tr2GrannyAnimation.cpp:344–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344void Tr2GrannyAnimation::LoadSecondaryResPath( const std::string& val )
345{
346 if( m_secondaryGrannyRes[val] )
347 {
348 m_secondaryGrannyRes[val]->RemoveNotifyTarget( this );
349 m_secondaryGrannyRes[val].Unlock();
350 }
351
352 BeResMan->GetResource( val.c_str(), "raw", BlueInterfaceIID<TriGrannyRes>(), (void**)&m_secondaryGrannyRes[val] );
353
354 if( m_secondaryGrannyRes[val] )
355 {
356 m_secondaryGrannyRes[val]->AddNotifyTarget( this );
357 }
358}
359
360void Tr2GrannyAnimation::ReleaseCachedData( BlueAsyncRes* p )
361{

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected