MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / load

Method load

src/Core/Config/Config.cpp:16–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 {
15 }
16 void ConfigurationManager::load()
17 {
18 // TODO: Do not modify MountedPaths directly
19 auto mountPoints = System::MountablePath::Paths();
20 std::reverse(mountPoints.begin(), mountPoints.end());
21 const auto loadResult
22 = System::Path(mountPoints).set("Data/config.cfg.vili").findAll();
23 for (const std::string path : loadResult)
24 {
25 Debug::Log->info("Loading config file from {}", path);
26 vili::node conf
27 = vili::parser::from_file(path, Templates::getConfigTemplates());
28 std::cout << "Merging : " << conf.dump() << std::endl;
29 this->merge(conf);
30 std::cout << "Result : " << this->dump() << std::endl;
31 }
32 }
33} // namespace obe::System

Callers

nothing calls this directly

Calls 11

PathClass · 0.85
from_fileFunction · 0.85
getConfigTemplatesFunction · 0.85
findAllMethod · 0.80
infoMethod · 0.80
mergeMethod · 0.80
reverseFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
setMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected