mirror of
https://gitlab.com/square-game-liberation-front/F.E.I.S.git
synced 2025-03-01 07:50:25 +01:00
30 lines
473 B
C++
30 lines
473 B
C++
#ifndef FEIS_PREFERENCES_H
|
|
#define FEIS_PREFERENCES_H
|
|
|
|
#include <string>
|
|
#include <fstream>
|
|
#include <json.hpp>
|
|
#include "marker.hpp"
|
|
|
|
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
|