-----------------------------------------------------------------------
| 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 |