add file.read_combined_list(...)

This commit is contained in:
MihailRis
2024-09-30 01:55:42 +03:00
parent f20a0dfae0
commit e590d06bb0
5 changed files with 63 additions and 8 deletions
+6
View File
@@ -6,6 +6,7 @@
#include <vector>
#include <tuple>
#include "data/dv.hpp"
#include "content/ContentPack.hpp"
@@ -63,6 +64,11 @@ public:
std::vector<std::filesystem::path> listdir(const std::string& folder) const;
std::vector<std::string> listdirRaw(const std::string& folder) const;
/// @brief Read all found list versions from all packs and combine into a
/// single list. Invalid versions will be skipped with logging a warning
/// @param file *.json file path relative to entry point
dv::value readCombinedList(const std::string& file);
const std::filesystem::path& getMainRoot() const;
private: