| 39 | } |
| 40 | |
| 41 | OperationResult 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 | |
| 53 | OperationResult ManifestFetcher::Parse(std::string_view manifestStr, Manifest& manifest) |
| 54 | { |
no test coverage detected