mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 04:04:53 +01:00
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:
parent
f15b2b0458
commit
8c45ab2003
4 changed files with 26 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue