From 986c750fdc6abfaef673bf4fa52a44a196472d10 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Tue, 5 Mar 2019 21:47:28 +0300 Subject: [PATCH] VFS: fix sys_fs_opendir on root --- rpcs3/Emu/VFS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/VFS.cpp b/rpcs3/Emu/VFS.cpp index 9058abeb7d..d8ae90cf2e 100644 --- a/rpcs3/Emu/VFS.cpp +++ b/rpcs3/Emu/VFS.cpp @@ -130,7 +130,7 @@ std::string vfs::get(std::string_view vpath, std::vector* 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;