mirror of
https://github.com/lucaspalomodevelop/autom.git
synced 2026-03-12 23:27:21 +00:00
update nlohmann/json include
This commit is contained in:
parent
04a37f422a
commit
e4d272fc53
@ -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;
|
||||
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user