MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Load

Method Load

engine/Poseidon/Core/ModCollection.cpp:381–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379{
380 _roots.push_back({std::move(path), source});
381}
382
383ModCollection ModLoader::Load() const
384{
385 ModCollection col;
386 for (const Root& r : _roots)
387 {
388 for (Mod& m : ScanModsRoot(r.path, r.source))
389 {
390 if (!col.Contains(m.id))
391 col.Add(std::move(m));
392 }
393 }
394 return col;
395}
396} // namespace Poseidon

Callers 2

LoadBanksFunction · 0.45

Calls 3

ScanModsRootFunction · 0.85
ContainsMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected