diff options
| author | LC <mathew1800@gmail.com> | 2020-12-09 17:25:09 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-09 17:25:09 -0500 |
| commit | be3622e5503832367a9b22baa67c0f92cc7a98ab (patch) | |
| tree | 727c431f6ee60371ca403376c917ed25f6c52aa7 /src/common/file_util.cpp | |
| parent | 586d5a72e1e151b9767b93be2c4b8b636acdf00f (diff) | |
| parent | eff4da93e15da593821e8fb78c42f34e1d65d8cc (diff) | |
Merge pull request #5179 from ReinUsesLisp/fs-path
common/file_util: Let std::filesystem cast from UTF16 to std::string
Diffstat (limited to 'src/common/file_util.cpp')
| -rw-r--r-- | src/common/file_util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 7752c04213..a286b93412 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -239,7 +239,7 @@ bool ForeachDirectoryEntry(u64* num_entries_out, const std::string& directory, } // windows loop do { - const std::string virtual_name(Common::UTF16ToUTF8(ffd.cFileName)); + const std::string virtual_name = std::filesystem::path(ffd.cFileName).string(); #else DIR* dirp = opendir(directory.c_str()); if (!dirp) |
