default users.json location

This commit is contained in:
EntireTwix 2021-06-01 16:30:29 -07:00
parent e53c54637d
commit 6927061705

View file

@ -200,7 +200,7 @@ public:
Json::StreamWriterBuilder builder;
const std::unique_ptr<Json::StreamWriter> writer(builder.newStreamWriter());
std::ofstream user_save("users.json");
std::ofstream user_save("../users.json");
Json::Value temp;
//loading info into json temp
@ -227,7 +227,7 @@ public:
Json::CharReaderBuilder builder;
Json::Value temp;
std::ifstream user_save("users.json");
std::ifstream user_save("../users.json");
builder["collectComments"] = true;
JSONCPP_STRING errs;
if (!parseFromStream(builder, user_save, &temp, &errs))