MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / find

Method find

Engine/source/core/resourceManager.cpp:88–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88ResourceBase ResourceManager::find(const Torque::Path &path)
89{
90#ifdef TORQUE_DEBUG_RES_MANAGER
91 Con::printf( "ResourceManager::find : [%s]", path.getFullPath().c_str() );
92#endif
93
94 ResourceHeaderMap::Iterator iter = mResourceHeaderMap.find( path.getFullPath() );
95
96 if ( iter == mResourceHeaderMap.end() )
97 return ResourceBase();
98
99 ResourceHeaderMap::Pair &pair = *iter;
100
101 ResourceBase::Header *header = pair.value;
102
103 return ResourceBase(header);
104}
105
106#ifdef TORQUE_DEBUG
107void ResourceManager::dumpToConsole()

Callers 2

removeMethod · 0.45
reloadResourceMethod · 0.45

Calls 4

printfFunction · 0.85
ResourceBaseClass · 0.85
c_strMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected