MCPcopy Create free account
hub / github.com/Norbyte/bg3se / FindLoadableResource

Method FindLoadableResource

BG3Updater/Cache.cpp:421–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421std::optional<CachedResource> ResourceCacheRepository::FindLoadableResource(std::string const& resourceName, VersionNumber const& gameVersion)
422{
423 auto ver = manifest_.FindResourceVersionWithOverrides(resourceName, gameVersion, config_);
424 if (!ver) {
425 return {};
426 }
427
428 CachedResource res(path_, resourceName, *ver);
429 if (res.ExtenderDLLExists()) {
430 return res;
431 } else {
432 return {};
433 }
434}
435
436bool ResourceCacheRepository::HasLocalCopy(Manifest::Resource const& resource, Manifest::ResourceVersion const& version) const
437{

Callers 1

FetchUpdatesMethod · 0.80

Calls 2

ExtenderDLLExistsMethod · 0.80

Tested by

no test coverage detected