update nlohmann/json include

This commit is contained in:
lucaspalomodevelop 2023-12-08 23:13:48 +01:00
parent 04a37f422a
commit e4d272fc53
2 changed files with 4 additions and 7 deletions

View File

@ -3,7 +3,7 @@
#ifndef SETTINGS_H
#define SETTINGS_H
#include <nlohmann/json.hpp>
#include "../libs/json/single_include/nlohmann/json.hpp"
using json = nlohmann::json;

View File

@ -9,7 +9,7 @@
#include <filesystem>
#include <fstream>
#include <nlohmann/json.hpp>
#include "../libs/json/single_include/nlohmann/json.hpp"
using json = nlohmann::json;
class Setup
@ -48,19 +48,16 @@ public:
{
std::replace(home.begin(), home.end(), '\\', '/');
std::ofstream file(home + "/.automconfig.json");
json j = {
json j = {
{"editor", editor},
{"search_dirs", {home}},
{"autom_home_dir", home}
};
{"autom_home_dir", home}};
file << j.dump(4);
file.close();
}
void runSetup()