| 288 | } |
| 289 | |
| 290 | bool ResourceManager::isBundleLoaded(const StringBox& bundleName) { |
| 291 | std::lock_guard<Mutex> guard(_mutex); |
| 292 | const auto& it = _bundleByName.find(bundleName); |
| 293 | if (it == _bundleByName.end()) { |
| 294 | return false; |
| 295 | } |
| 296 | return !it->second->hasRemoteArchiveNeedingLoad(); |
| 297 | } |
| 298 | |
| 299 | bool ResourceManager::bundleHasRemoteSources(const StringBox& bundleName) { |
| 300 | return getBundle(bundleName)->hasRemoteArchive(); |