Mercurial > minori
diff include/core/anime_db.h @ 174:f88eda79c60a
anime/db: add some more json functionality, still doesn't compile :/
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 29 Nov 2023 13:53:56 -0500 |
parents | de0a8d2f28b3 |
children | 9b10175be389 |
line wrap: on
line diff
--- a/include/core/anime_db.h Tue Nov 28 13:53:54 2023 -0500 +++ b/include/core/anime_db.h Wed Nov 29 13:53:56 2023 -0500 @@ -21,6 +21,13 @@ int GetAnimeFromTitle(const std::string& title); bool GetDatabaseAsJSON(nlohmann::json& json); + bool SaveDatabaseToDisk(); + + bool ParseDatabaseJSON(const nlohmann::json& json); + bool LoadDatabaseFromFile(); + + protected: + bool ParseAnimeInfoJSON(const nlohmann::json& json); }; extern Database db;