mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-01-31 01:15:24 +01:00
FileSystem: Fix splitting UNC paths
This commit is contained in:
committed by
refractionpcsx2
parent
e7db878188
commit
a5124b118b
@@ -445,6 +445,11 @@ std::vector<std::string_view> Path::SplitWindowsPath(const std::string_view& pat
|
||||
|
||||
std::string::size_type start = 0;
|
||||
std::string::size_type pos = 0;
|
||||
|
||||
// preserve unc paths
|
||||
if (path.size() > 2 && path[0] == '\\' && path[1] == '\\')
|
||||
pos = 2;
|
||||
|
||||
while (pos < path.size())
|
||||
{
|
||||
if (path[pos] != '/' && path[pos] != '\\')
|
||||
|
||||
Reference in New Issue
Block a user