diff options
Diffstat (limited to 'zencore/filesystem.cpp')
| -rw-r--r-- | zencore/filesystem.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp index 52f02b56a..4456757a6 100644 --- a/zencore/filesystem.cpp +++ b/zencore/filesystem.cpp @@ -728,6 +728,16 @@ ScanFile(std::filesystem::path Path, const uint64_t ChunkSize, std::function<voi return true; } +void +PathToUtf8(const std::filesystem::path& Path, StringBuilderBase& Out) +{ +#if ZEN_PLATFORM_WINDOWS + WideToUtf8(Path.native().c_str(), Out); +#else + Out << Path.c_str(); +#endif +} + std::string PathToUtf8(const std::filesystem::path& Path) { |