From 0d415407c7b62ac1541fb5284e53d62b13683972 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Fri, 12 Apr 2019 12:24:36 +0300 Subject: [PATCH] sys_fs_unlink: add CELL_EISDIR check --- rpcs3/Emu/Cell/lv2/sys_fs.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpcs3/Emu/Cell/lv2/sys_fs.cpp b/rpcs3/Emu/Cell/lv2/sys_fs.cpp index 6bb66463ca..e49493bab8 100644 --- a/rpcs3/Emu/Cell/lv2/sys_fs.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_fs.cpp @@ -852,6 +852,11 @@ error_code sys_fs_unlink(vm::cptr path) return {CELL_ENOTMOUNTED, path}; } + if (fs::is_dir(local_path)) + { + return {CELL_EISDIR, path}; + } + if (!vfs::host::unlink(local_path)) { switch (auto error = fs::g_tls_error)