F.E.I.S/src/preferences.hpp

30 lines
473 B
C++
Raw Normal View History

2019-03-28 02:17:15 +01:00
#ifndef FEIS_PREFERENCES_H
#define FEIS_PREFERENCES_H
#include <string>
#include <fstream>
#include <json.hpp>
2021-12-31 00:57:06 +01:00
#include "marker.hpp"
2019-03-28 02:17:15 +01:00
class Preferences {
public:
Preferences();
void load(nlohmann::json j);
void load_v0_1_0(nlohmann::json j);
void loadDefaults();
void save();
std::string marker;
MarkerEndingState markerEndingState;
private:
const std::string file_path = "settings/preferences.json";
};
#endif //FEIS_PREFERENCES_H