Rework inventory loading

More generic json loading allows to load a json from a specified folder rather than the "inventory" directory.
Also changed achievements location to <appid> root diectory
This commit is contained in:
Nemirtingas 2019-10-13 12:26:22 +02:00
parent f15b2b0458
commit 8c45ab2003
4 changed files with 26 additions and 15 deletions

View file

@ -63,8 +63,8 @@ public:
bool update_save_filenames(std::string folder);
bool load_inventory_file(nlohmann::json &json, std::string const&file);
bool write_inventory_file(nlohmann::json const& json, std::string const&file);
bool load_json_file(std::string folder, std::string const& file, nlohmann::json& json);
bool write_json_file(std::string folder, std::string const& file, nlohmann::json const& json);
};
#endif