Browse Source
Merge pull request #5179 from ReinUsesLisp/fs-path
common/file_util: Let std::filesystem cast from UTF16 to std::string
pull/15/merge
LC
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/common/file_util.cpp
|
|
@ -239,7 +239,7 @@ bool ForeachDirectoryEntry(u64* num_entries_out, const std::string& directory, |
|
|
} |
|
|
} |
|
|
// windows loop
|
|
|
// windows loop
|
|
|
do { |
|
|
do { |
|
|
const std::string virtual_name(Common::UTF16ToUTF8(ffd.cFileName)); |
|
|
|
|
|
|
|
|
const std::string virtual_name = std::filesystem::path(ffd.cFileName).string(); |
|
|
#else
|
|
|
#else
|
|
|
DIR* dirp = opendir(directory.c_str()); |
|
|
DIR* dirp = opendir(directory.c_str()); |
|
|
if (!dirp) |
|
|
if (!dirp) |
|
|
|