mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-17 11:34:18 +01:00
iop/hostfs: don't replace back slashes with forward slashes on Windows
This commit is contained in:
1 parent
02fda478ea
commit
84d16802a3
1 file changed
+4
@@ -153,9 +153,13 @@ namespace R3000A
|
||||
// the directory is considered non-existant
|
||||
static __fi std::string clean_path(const std::string& path)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
std::string ret = path;
|
||||
std::replace(ret.begin(), ret.end(), '\\', '/');
|
||||
return ret;
|
||||
#else // This function will cause problems with Windows WSL / device paths where forward slashes are required
|
||||
return path;
|
||||
#endif
|
||||
}
|
||||
|
||||
static int host_stat(const std::string& path, fio_stat_t* host_stats, fio_stat_flags& stat = ioman_stat)
|
||||
|
||||
Reference in new issue
Block a user