MCPcopy Create free account
hub / github.com/OGRECave/ogre / findResourceNames

Method findResourceNames

OgreMain/src/OgreResourceGroupManager.cpp:1277–1294  ·  view source on GitHub ↗

-----------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1275 }
1276 //-----------------------------------------------------------------------
1277 StringVectorPtr ResourceGroupManager::findResourceNames(const String& groupName,
1278 const String& pattern, bool dirs) const
1279 {
1280 auto vec = std::make_shared<StringVector>();
1281
1282 // Try to find in resource index first
1283 ResourceGroup* grp = getResourceGroup(groupName, true);
1284 OGRE_LOCK_MUTEX(grp->OGRE_AUTO_MUTEX_NAME); // lock group mutex
1285
1286 // Iterate over the archives
1287 for (auto& i : grp->locationList)
1288 {
1289 StringVectorPtr lst = i.archive->find(pattern, i.recursive, dirs);
1290 vec->insert(vec->end(), lst->begin(), lst->end());
1291 }
1292
1293 return vec;
1294 }
1295 //-----------------------------------------------------------------------
1296 FileInfoListPtr ResourceGroupManager::findResourceFileInfo(const String& groupName,
1297 const String& pattern, bool dirs) const

Callers 3

TEST_FFunction · 0.80
setupControlsMethod · 0.80

Calls 4

findMethod · 0.45
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by 1

TEST_FFunction · 0.64