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

Method LoadEmbedded

BG3Updater/Updater.cpp:41–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41OperationResult ManifestFetcher::LoadEmbedded(Manifest& manifest)
42{
43 auto manifestBinary = GetExeResource(IDR_LOCAL_MANIFEST);
44 if (!manifestBinary || manifestBinary->empty()) {
45 DEBUG("No embedded manifest found; skipping embedded load");
46 return ErrorReason{ "No embedded manifest found" };
47 }
48
49 DEBUG("Loading embedded manifest");
50 return Parse(*manifestBinary, manifest);
51}
52
53OperationResult ManifestFetcher::Parse(std::string_view manifestStr, Manifest& manifest)
54{

Callers 1

Calls 2

GetExeResourceFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected