From e4d272fc535da13cb7409ba3cf50a9a665becd24 Mon Sep 17 00:00:00 2001 From: lucaspalomodevelop Date: Fri, 8 Dec 2023 23:13:48 +0100 Subject: [PATCH] update nlohmann/json include --- src/settings.h | 2 +- src/setup.h | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/settings.h b/src/settings.h index d78ebb5..372846b 100644 --- a/src/settings.h +++ b/src/settings.h @@ -3,7 +3,7 @@ #ifndef SETTINGS_H #define SETTINGS_H -#include +#include "../libs/json/single_include/nlohmann/json.hpp" using json = nlohmann::json; diff --git a/src/setup.h b/src/setup.h index eb5a789..95597e3 100644 --- a/src/setup.h +++ b/src/setup.h @@ -9,7 +9,7 @@ #include #include -#include +#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()