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

Method setAssetCatalog

valdi/src/valdi/runtime/Resources/Bundle.cpp:317–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317void Bundle::setAssetCatalog(const StringBox& assetCatalogPath, const Ref<AssetCatalog>& assetCatalog) {
318 std::lock_guard<std::recursive_mutex> guard(_mutex);
319 _assetCatalogByPath[assetCatalogPath] = assetCatalog;
320}
321
322Result<Ref<AssetCatalog>> Bundle::lockFreeGetAssetCatalog(const StringBox& assetCatalogPath) {
323 const auto& it = _assetCatalogByPath.find(assetCatalogPath);

Callers 3

TESTFunction · 0.80
updateResourcesMethod · 0.80

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.64