aboutsummaryrefslogtreecommitdiff
path: root/zencore/filesystem.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-09-16 16:42:52 +0200
committerMartin Ridgers <[email protected]>2021-09-16 16:42:52 +0200
commit434a5ea8c5ac40530e45b2e8848ab6cb742979be (patch)
tree72a1ae56d582ca66ddd059cebf5c439387b3d562 /zencore/filesystem.cpp
parentImplemented FileSysTraversal for Linux using open/read/closedir() (diff)
downloadzen-434a5ea8c5ac40530e45b2e8848ab6cb742979be.tar.xz
zen-434a5ea8c5ac40530e45b2e8848ab6cb742979be.zip
ToUtf8() for non-wchar_t platforms
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