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()