msvc build fix

This commit is contained in:
MihailRis
2024-05-06 17:15:48 +03:00
parent 1627e21c1d
commit b3a1cad0e1
5 changed files with 9 additions and 5 deletions
+2 -2
View File
@@ -93,7 +93,7 @@ assetload::postfunc assetload::atlas(
) {
AtlasBuilder builder;
for (const auto& file : paths->listdir(directory)) {
if (!imageio::is_read_supported(file.extension()))
if (!imageio::is_read_supported(file.extension().u8string()))
continue;
if (!append_atlas(builder, file))
continue;
@@ -289,7 +289,7 @@ static bool animation(
read_anim_file(animFile, frameList);
}
for (const auto& file : paths->listdir(animsDir + "/" + name)) {
if (!frameList.empty() && !contains(frameList, file.stem())) {
if (!frameList.empty() && !contains(frameList, file.stem().u8string())) {
continue;
}
if (!append_atlas(builder, file))