mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
add file.mount(...) and file.unmount(...)
This commit is contained in:
parent
6286096b57
commit
e8153f3393
4 changed files with 68 additions and 10 deletions
|
|
@ -34,6 +34,9 @@ public:
|
|||
io::path getControlsFile() const;
|
||||
io::path getSettingsFile() const;
|
||||
|
||||
std::string mount(const io::path& file);
|
||||
void unmount(const std::string& name);
|
||||
|
||||
std::string createWriteablePackDevice(const std::string& name);
|
||||
|
||||
void setContentPacks(std::vector<ContentPack>* contentPacks);
|
||||
|
|
@ -51,6 +54,7 @@ private:
|
|||
std::vector<ContentPack>* contentPacks = nullptr;
|
||||
std::vector<std::string> contentEntryPoints;
|
||||
std::unordered_map<std::string, std::string> writeablePacks;
|
||||
std::vector<std::string> mounted;
|
||||
};
|
||||
|
||||
struct PathsRoot {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue