mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
add file.name(), file.stem() & add 'path' to pack info & add start_coroutine()
This commit is contained in:
parent
c51a7e0153
commit
136c35591c
14 changed files with 147 additions and 70 deletions
|
|
@ -10,12 +10,12 @@ namespace fs = std::filesystem;
|
|||
|
||||
class PacksManager {
|
||||
std::unordered_map<std::string, ContentPack> packs;
|
||||
std::vector<fs::path> sources;
|
||||
std::vector<std::pair<std::string, fs::path>> sources;
|
||||
public:
|
||||
PacksManager();
|
||||
|
||||
/// @brief Set content packs sources (search folders)
|
||||
void setSources(std::vector<fs::path> sources);
|
||||
void setSources(std::vector<std::pair<std::string, fs::path>> sources);
|
||||
|
||||
/// @brief Scan sources and collect all found packs excluding duplication.
|
||||
/// Scanning order depends on sources order
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue