mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
add pack.request_writeable(...) & update gui.confirm screen
This commit is contained in:
parent
4cdb1fbae2
commit
88b45e5098
6 changed files with 84 additions and 14 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <unordered_map>
|
||||
#include <stdexcept>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
|
@ -33,6 +34,8 @@ public:
|
|||
io::path getControlsFile() const;
|
||||
io::path getSettingsFile() const;
|
||||
|
||||
std::string createWriteablePackDevice(const std::string& name);
|
||||
|
||||
void setContentPacks(std::vector<ContentPack>* contentPacks);
|
||||
|
||||
std::vector<io::path> scanForWorlds() const;
|
||||
|
|
@ -47,6 +50,7 @@ private:
|
|||
std::optional<std::filesystem::path> scriptFolder;
|
||||
std::vector<ContentPack>* contentPacks = nullptr;
|
||||
std::vector<std::string> contentEntryPoints;
|
||||
std::unordered_map<std::string, std::string> writeablePacks;
|
||||
};
|
||||
|
||||
struct PathsRoot {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue