diff options
| author | 2020-12-09 17:25:09 -0500 | |
|---|---|---|
| committer | 2020-12-09 17:25:09 -0500 | |
| commit | 4e94d0d53af2cdb7b03ef9de23cc29f3565df97a (patch) | |
| tree | 727c431f6ee60371ca403376c917ed25f6c52aa7 /src/common/file_util.cpp | |
| parent | Merge pull request #5176 from Morph1984/fix-createfile (diff) | |
| parent | common/file_util: Let std::filesystem cast from UTF16 to std::string (diff) | |
| download | yuzu-4e94d0d53af2cdb7b03ef9de23cc29f3565df97a.tar.gz yuzu-4e94d0d53af2cdb7b03ef9de23cc29f3565df97a.tar.xz yuzu-4e94d0d53af2cdb7b03ef9de23cc29f3565df97a.zip | |
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 7752c0421..a286b9341 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, | |||
| 239 | } | 239 | } |
| 240 | // windows loop | 240 | // windows loop |
| 241 | do { | 241 | do { |
| 242 | const std::string virtual_name(Common::UTF16ToUTF8(ffd.cFileName)); | 242 | const std::string virtual_name = std::filesystem::path(ffd.cFileName).string(); |
| 243 | #else | 243 | #else |
| 244 | DIR* dirp = opendir(directory.c_str()); | 244 | DIR* dirp = opendir(directory.c_str()); |
| 245 | if (!dirp) | 245 | if (!dirp) |