2022-03-02 23:59:19 +01:00
|
|
|
#pragma once
|
2019-03-28 02:17:15 +01:00
|
|
|
|
2022-01-04 01:31:17 +01:00
|
|
|
#include <filesystem>
|
2019-03-28 02:17:15 +01:00
|
|
|
#include <fstream>
|
|
|
|
#include <json.hpp>
|
2021-12-31 14:59:39 +01:00
|
|
|
#include <string>
|
|
|
|
|
2021-12-31 00:57:06 +01:00
|
|
|
#include "marker.hpp"
|
2019-03-28 02:17:15 +01:00
|
|
|
|
|
|
|
class Preferences {
|
|
|
|
public:
|
2022-01-04 01:31:17 +01:00
|
|
|
Preferences(std::filesystem::path assets, std::filesystem::path settings);
|
2019-03-28 02:17:15 +01:00
|
|
|
|
|
|
|
void load(nlohmann::json j);
|
|
|
|
void load_v0_1_0(nlohmann::json j);
|
|
|
|
|
|
|
|
void save();
|
|
|
|
|
2022-04-09 00:54:06 +02:00
|
|
|
std::filesystem::path marker;
|
|
|
|
Judgement marker_ending_state;
|
2022-03-16 02:10:18 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::filesystem::path file_path;
|
2019-03-28 02:17:15 +01:00
|
|
|
};
|