diff --git a/src/assets/AssetsLoader.cpp b/src/assets/AssetsLoader.cpp index 75431a03..ce00bd20 100644 --- a/src/assets/AssetsLoader.cpp +++ b/src/assets/AssetsLoader.cpp @@ -17,8 +17,8 @@ void AssetsLoader::addLoader(int tag, aloader_func func) { loaders[tag] = func; } -void AssetsLoader::add(int tag, const std::string filename, const std::string alias) { - entries.push(aloader_entry{ tag, filename, alias }); +void AssetsLoader::add(int tag, const path filename, const std::string alias) { + entries.push(aloader_entry{ tag, filename.string(), alias}); } bool AssetsLoader::hasNext() const { diff --git a/src/assets/AssetsLoader.h b/src/assets/AssetsLoader.h index 7cb4c6e9..dfce4b36 100644 --- a/src/assets/AssetsLoader.h +++ b/src/assets/AssetsLoader.h @@ -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();