mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-12 19:19:43 +00:00
VFS: fix /host_root
This commit is contained in:
parent
dce14a359a
commit
59090f6d26
1 changed files with 12 additions and 11 deletions
|
@ -203,11 +203,8 @@ std::string vfs::get(std::string_view vpath, std::vector<std::string>* out_dir)
|
||||||
if (dir.first == name)
|
if (dir.first == name)
|
||||||
{
|
{
|
||||||
list.back() = &dir.second;
|
list.back() = &dir.second;
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (last->path == "/")
|
if (dir.second.path == "/"sv)
|
||||||
{
|
{
|
||||||
if (vpath.empty())
|
if (vpath.empty())
|
||||||
{
|
{
|
||||||
|
@ -217,6 +214,10 @@ std::string vfs::get(std::string_view vpath, std::vector<std::string>* out_dir)
|
||||||
// Handle /host_root (not escaped, not processed)
|
// Handle /host_root (not escaped, not processed)
|
||||||
return std::string{vpath.substr(1)};
|
return std::string{vpath.substr(1)};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result_base.empty())
|
if (result_base.empty())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue