mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 10:48:36 +12:00
VFS: fix sys_fs_opendir on root
This commit is contained in:
parent
efe067bfa0
commit
986c750fdc
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue