aboutsummaryrefslogtreecommitdiff
path: root/zencore/filesystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zencore/filesystem.cpp')
-rw-r--r--zencore/filesystem.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp
index a03623196..1cc5ff339 100644
--- a/zencore/filesystem.cpp
+++ b/zencore/filesystem.cpp
@@ -605,7 +605,11 @@ ScanFile(std::filesystem::path Path, const uint64_t ChunkSize, std::function<voi
std::string
ToUtf8(const std::filesystem::path& Path)
{
+#if ZEN_PLATFORM_WINDOWS
return WideToUtf8(Path.native().c_str());
+#else
+ return Path.string();
+#endif
}
void