Customizable saves path

This commit is contained in:
Simone Coco
2024-05-20 10:33:52 +02:00
parent 8cb30838ed
commit 315a522dbf
7 changed files with 54 additions and 3 deletions

View File

@@ -16,6 +16,7 @@ static inline nlohmann::json JSONOpenOrCreate(const std::string& path) {
} else {
auto file = std::fstream(path, std::fstream::in | std::fstream::out | std::fstream::trunc);
nlohmann::json json;
json["general"]["savePath"] = "";
json["audio"]["volumeL"] = 0.5;
json["audio"]["volumeR"] = 0.5;
json["audio"]["lock"] = true;