diff options
author | LC <mathew1800@gmail.com> | 2020-12-09 23:25:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 23:25:09 +0100 |
commit | 4e94d0d53af2cdb7b03ef9de23cc29f3565df97a (patch) | |
tree | 727c431f6ee60371ca403376c917ed25f6c52aa7 /src/common | |
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 yuzu-4e94d0d53af2cdb7b03ef9de23cc29f3565df97a.tar.gz yuzu-4e94d0d53af2cdb7b03ef9de23cc29f3565df97a.tar.bz2 yuzu-4e94d0d53af2cdb7b03ef9de23cc29f3565df97a.tar.lz yuzu-4e94d0d53af2cdb7b03ef9de23cc29f3565df97a.tar.xz yuzu-4e94d0d53af2cdb7b03ef9de23cc29f3565df97a.tar.zst yuzu-4e94d0d53af2cdb7b03ef9de23cc29f3565df97a.zip |
Diffstat (limited to 'src/common')
-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, } // 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) |