diff options
| author | Tilka <tilkax@gmail.com> | 2025-04-25 01:38:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-25 01:38:35 +0100 |
| commit | 50026ab795c6047d3c7fba7d9cd4d8867c67ba7d (patch) | |
| tree | 4e50ed5f6b93121f2fc8302b45c3fe5b5d079f8a /Source/Core/Common/FileUtil.cpp | |
| parent | 908094714b5478aab4ec9eeb9de56ca8d4d50662 (diff) | |
| parent | 7ca8dc376745818ab1b1ef3a7092d5f69775b54a (diff) | |
Merge pull request #13497 from hoogmin/modernize_fs_path
Core/Common/FileUtil.cpp: Use std path utility for automatic path separator handling.
Diffstat (limited to 'Source/Core/Common/FileUtil.cpp')
| -rw-r--r-- | Source/Core/Common/FileUtil.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/Core/Common/FileUtil.cpp b/Source/Core/Common/FileUtil.cpp index ee2b330812..51a841ddec 100644 --- a/Source/Core/Common/FileUtil.cpp +++ b/Source/Core/Common/FileUtil.cpp @@ -442,12 +442,7 @@ FSTEntry ScanDirectoryTree(std::string directory, bool recursive) auto path_to_physical_name = [](const fs::path& path) { #ifdef _WIN32 - // TODO Ideally this would not be needed - dolphin really should not have code directly mucking - // about with directory separators (for host paths - emulated paths may require it) and instead - // use fs::path to interact with them. - auto wpath = path.wstring(); - std::ranges::replace(wpath, L'\\', L'/'); - return WStringToUTF8(wpath); + return WStringToUTF8(path.generic_wstring()); #else return PathToString(path); #endif |
