From cdc1d0c02ba98bbfa1871b08cb3c276808a1142c Mon Sep 17 00:00:00 2001 From: brian218 Date: Sat, 10 Dec 2022 10:43:25 +0800 Subject: [PATCH] sys_fs: sys_fs_get_mount_info(): Made g_mp_sys_dev_root always reported as mounted --- rpcs3/Emu/Cell/lv2/sys_fs.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_fs.cpp b/rpcs3/Emu/Cell/lv2/sys_fs.cpp index 2496d452b7..071477958f 100644 --- a/rpcs3/Emu/Cell/lv2/sys_fs.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_fs.cpp @@ -3058,12 +3058,9 @@ error_code sys_fs_get_mount_info_size(ppu_thread&, vm::ptr len) } } } - else + else if (mp == &g_mp_sys_dev_root || !vfs::get(mp->root).empty()) { - if (!vfs::get(mp->root).empty()) - { - count++; - } + count++; } } @@ -3114,7 +3111,7 @@ error_code sys_fs_get_mount_info(ppu_thread&, vm::ptr info, u64 } } } - else if (!vfs::get(mp->root).empty()) + else if (mp == &g_mp_sys_dev_root || !vfs::get(mp->root).empty()) { if (mp == &g_mp_sys_dev_root || mp == &g_mp_sys_dev_flash) {