added paths 'world:' entry point

This commit is contained in:
MihailRis
2024-01-26 15:59:04 +03:00
parent c6a2fc90a8
commit 5d6c2b9b8e
3 changed files with 12 additions and 0 deletions
+2
View File
@@ -12,6 +12,7 @@ namespace fs = std::filesystem;
class EnginePaths {
fs::path userfiles {"."};
fs::path resources {"res"};
fs::path worldFolder {""};
std::vector<ContentPack>* contentPacks = nullptr;
public:
fs::path getUserfiles() const;
@@ -24,6 +25,7 @@ public:
void setUserfiles(fs::path folder);
void setResources(fs::path folder);
void setContentPacks(std::vector<ContentPack>* contentPacks);
void setWorldFolder(fs::path folder);
std::vector<fs::path> scanForWorlds();