이대로 제출해버릴까..
This commit is contained in:
16
impl/utils/ConfigManager.cpp
Normal file
16
impl/utils/ConfigManager.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user