MCPcopy Create free account
hub / github.com/DFIR-ORC/dfir-orc / LoadDependencies

Method LoadDependencies

src/OrcLib/ExtensionLibrary.cpp:54–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54HRESULT Orc::ExtensionLibrary::LoadDependencies(std::optional<std::filesystem::path> tempDir)
55{
56 for (const auto& dependency : m_Dependencies)
57 {
58 if( !dependency)
59 {
60 Log::Error(L"Failed to load dependency for library '{}'", m_strKeyword);
61 continue;
62 }
63 if (dependency->IsLoaded())
64 continue;
65 if (auto hr = dependency->Load(tempDir); FAILED(hr))
66 {
67 Log::Error(L"Failed to load dependency library '{}'", dependency->Keyword());
68 return hr;
69 }
70 else
71 {
72 Log::Debug(L"Loaded dependency library '{}'", dependency->Keyword());
73 }
74 }
75 return S_OK;
76}
77
78HRESULT ExtensionLibrary::TryLoad(std::wstring strFileRef)
79{

Callers

nothing calls this directly

Calls 4

IsLoadedMethod · 0.80
ErrorFunction · 0.50
DebugFunction · 0.50
LoadMethod · 0.45

Tested by

no test coverage detected