migrate from std::filesystem::path to io::path (WIP)

This commit is contained in:
MihailRis
2025-01-30 22:23:13 +03:00
parent 1e22882284
commit e0314803c0
72 changed files with 1189 additions and 791 deletions
+1 -1
View File
@@ -212,7 +212,7 @@ std::unique_ptr<Texture> png::load_texture(const ubyte* bytes, size_t size) {
}
std::unique_ptr<Texture> png::load_texture(const std::string& filename) {
auto bytes = io::read_bytes_buffer(fs::u8path(filename));
auto bytes = io::read_bytes_buffer(filename);
try {
return load_texture(bytes.data(), bytes.size());
} catch (const std::runtime_error& err) {