1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-23 03:02:53 +01:00

VFS: fix sys_fs_opendir on root

This commit is contained in:
Nekotekina 2019-03-05 21:47:28 +03:00
parent efe067bfa0
commit 986c750fdc

View File

@ -130,7 +130,7 @@ std::string vfs::get(std::string_view vpath, std::vector<std::string>* out_dir)
// Absolute path: finalize
for (auto it = list.rbegin(), rend = list.rend(); it != rend; it++)
{
if (auto* dir = *it; dir && !dir->path.empty())
if (auto* dir = *it; dir && (!dir->path.empty() || list.size() == 1))
{
// Save latest valid mount path
result_base = dir->path;