2020-08-16 01:39:05 +00:00
|
|
|
#pragma once
|
|
|
|
#include <json.hpp>
|
|
|
|
#include <fstream>
|
|
|
|
#include <spdlog/spdlog.h>
|
|
|
|
#include <filesystem>
|
|
|
|
#include <sstream>
|
|
|
|
#include <iomanip>
|
|
|
|
#include <thread>
|
|
|
|
#include <chrono>
|
|
|
|
|
|
|
|
using nlohmann::json;
|
|
|
|
|
|
|
|
namespace config {
|
|
|
|
void load(std::string path);
|
|
|
|
void startAutoSave();
|
|
|
|
void stopAutoSave();
|
2020-09-06 13:39:09 +00:00
|
|
|
void setRootDirectory(std::string dir);
|
|
|
|
std::string getRootDirectory();
|
2020-08-16 01:39:05 +00:00
|
|
|
|
|
|
|
extern bool configModified;
|
|
|
|
extern json config;
|
|
|
|
};
|