summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLC <mathew1800@gmail.com>2020-12-09 23:25:09 +0100
committerGitHub <noreply@github.com>2020-12-09 23:25:09 +0100
commit4e94d0d53af2cdb7b03ef9de23cc29f3565df97a (patch)
tree727c431f6ee60371ca403376c917ed25f6c52aa7 /src
parentMerge pull request #5176 from Morph1984/fix-createfile (diff)
parentcommon/file_util: Let std::filesystem cast from UTF16 to std::string (diff)
downloadyuzu-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')
-rw-r--r--src/common/file_util.cpp2
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)