| 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 | { |
no test coverage detected