content-pack resources support

This commit is contained in:
MihailRis
2023-12-14 02:30:39 +03:00
parent c6d2266026
commit 396ee31bcc
43 changed files with 170 additions and 90 deletions
+12
View File
@@ -2,6 +2,7 @@
#define FILES_ENGINE_PATHS_H_
#include <string>
#include <vector>
#include <filesystem>
class EnginePaths {
@@ -19,4 +20,15 @@ public:
void setResources(std::filesystem::path folder);
};
class ResPaths {
std::filesystem::path mainRoot;
std::vector<std::filesystem::path> roots;
public:
ResPaths(std::filesystem::path mainRoot,
std::vector<std::filesystem::path> roots);
std::filesystem::path find(const std::string& filename) const;
std::vector<std::filesystem::path> listdir(const std::string& folder) const;
};
#endif // FILES_ENGINE_PATHS_H_