17 lines
285 B
C++
17 lines
285 B
C++
#include "Utils/ConfigManager.h"
|
|
|
|
#include <json/json.h>
|
|
|
|
#include <fstream>
|
|
|
|
namespace utils {
|
|
void ConfigManager::save(Config& config) {
|
|
|
|
std::ofstream configfile("config.json", std::ios::out);
|
|
|
|
configfile << config.configJsonRoot;
|
|
|
|
configfile.close();
|
|
}
|
|
} // namespace utils
|