summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-12-12 02:21:46 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2020-12-12 02:21:46 +0100
commit0195038c07f88bb62fd492559bbc264a71c3ac7a (patch)
treea828b067a933ef03d25faa8389008756ae977fb1
parentRevert "Merge pull request #5181 from Morph1984/5174-review" (diff)
downloadyuzu-0195038c07f88bb62fd492559bbc264a71c3ac7a.tar
yuzu-0195038c07f88bb62fd492559bbc264a71c3ac7a.tar.gz
yuzu-0195038c07f88bb62fd492559bbc264a71c3ac7a.tar.bz2
yuzu-0195038c07f88bb62fd492559bbc264a71c3ac7a.tar.lz
yuzu-0195038c07f88bb62fd492559bbc264a71c3ac7a.tar.xz
yuzu-0195038c07f88bb62fd492559bbc264a71c3ac7a.tar.zst
yuzu-0195038c07f88bb62fd492559bbc264a71c3ac7a.zip
-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 a286b9341..7752c0421 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 = std::filesystem::path(ffd.cFileName).string();
+ const std::string virtual_name(Common::UTF16ToUTF8(ffd.cFileName));
#else
DIR* dirp = opendir(directory.c_str());
if (!dirp)