MCPcopy Create free account
hub / github.com/Snapchat/Valdi / isBundleLoaded

Method isBundleLoaded

valdi/src/valdi/runtime/Resources/ResourceManager.cpp:290–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290bool 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
299bool ResourceManager::bundleHasRemoteSources(const StringBox& bundleName) {
300 return getBundle(bundleName)->hasRemoteArchive();

Callers 2

TEST_PFunction · 0.80
runtimeIsModuleLoadedMethod · 0.80

Calls 3

endMethod · 0.65
findMethod · 0.45

Tested by 1

TEST_PFunction · 0.64