mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 18:53:28 +01:00
VFS: fix sys_fs_opendir on root
This commit is contained in:
parent
efe067bfa0
commit
986c750fdc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user