mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51:51 +00:00
MSVC build fix
This commit is contained in:
parent
c08c31b0ad
commit
6fc69e01c9
3 changed files with 15 additions and 11 deletions
|
|
@ -14,11 +14,11 @@
|
|||
|
||||
class Assets;
|
||||
|
||||
typedef std::function<bool(Assets*, const std::string&, const std::string&)> aloader_func;
|
||||
typedef std::function<bool(Assets*, const std::filesystem::path&, const std::string&)> aloader_func;
|
||||
|
||||
struct aloader_entry {
|
||||
int tag;
|
||||
const std::string filename;
|
||||
const std::filesystem::path filename;
|
||||
const std::string alias;
|
||||
};
|
||||
|
||||
|
|
@ -30,7 +30,7 @@ class AssetsLoader {
|
|||
public:
|
||||
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);
|
||||
void add(int tag, const std::filesystem::path filename, const std::string alias);
|
||||
|
||||
bool hasNext() const;
|
||||
bool loadNext();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue