mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
enginefs replaced with EnginePaths class + command line arguments
This commit is contained in:
parent
7a39ba6b2e
commit
fe220ee172
9 changed files with 54 additions and 85 deletions
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include <string>
|
||||
#include <functional>
|
||||
#include <filesystem>
|
||||
#include <map>
|
||||
#include <queue>
|
||||
|
||||
|
|
@ -25,8 +26,9 @@ class AssetsLoader {
|
|||
Assets* assets;
|
||||
std::map<int, aloader_func> loaders;
|
||||
std::queue<aloader_entry> entries;
|
||||
std::filesystem::path resdir;
|
||||
public:
|
||||
AssetsLoader(Assets* assets);
|
||||
AssetsLoader(Assets* assets, std::filesystem::path resdir);
|
||||
void addLoader(int tag, aloader_func func);
|
||||
void add(int tag, const std::string filename, const std::string alias);
|
||||
|
||||
|
|
@ -35,6 +37,8 @@ public:
|
|||
|
||||
static void createDefaults(AssetsLoader& loader);
|
||||
static void addDefaults(AssetsLoader& loader);
|
||||
|
||||
std::filesystem::path getDirectory() const;
|
||||
};
|
||||
|
||||
#endif // ASSETS_ASSETS_LOADER_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue