MCPcopy Create free account
hub / github.com/SatDump/SatDump / loadConfig

Function loadConfig

src-core/core/config.cpp:26–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 std::string user_cfg_path;
25
26 void loadConfig(std::string path, std::string user_path)
27 {
28 if (!std::filesystem::exists(path))
29 {
30 logger->error("Couldn't load config file! Was trying : " + path);
31 exit(1);
32 }
33
34 logger->info("Loading config " + path);
35 master_cfg = loadJsonFile(path);
36 main_cfg = master_cfg;
37
38 loadUserConfig(user_path);
39 }
40
41 void checkOutputDirs()
42 {

Callers 2

TrackingWidgetMethod · 0.85
initSatdumpFunction · 0.85

Calls 4

loadJsonFileFunction · 0.85
loadUserConfigFunction · 0.85
infoMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected