From 9c54305e105d9595777f60359487c54a0d2d54b0 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Tue, 7 Jan 2020 03:13:20 +0300 Subject: [PATCH] sys_fs: disable sys_fs_lsn_lock/unlock According to test, nothing seems to happen. Disable CELL_EBUSY errors associated with Stream Support API. --- rpcs3/Emu/Cell/lv2/sys_fs.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_fs.cpp b/rpcs3/Emu/Cell/lv2/sys_fs.cpp index 947bc8f130..c6204a26a7 100644 --- a/rpcs3/Emu/Cell/lv2/sys_fs.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_fs.cpp @@ -1792,12 +1792,7 @@ error_code sys_fs_lsn_lock(ppu_thread& ppu, u32 fd) return CELL_EBADF; } - // TODO: research correct implementation - if (!file->lock.compare_and_swap_test(0, 1)) - { - return CELL_EBUSY; - } - + // TODO: seems to do nothing return CELL_OK; } @@ -1812,12 +1807,7 @@ error_code sys_fs_lsn_unlock(ppu_thread& ppu, u32 fd) return CELL_EBADF; } - // TODO: research correct implementation - if (!file->lock.compare_and_swap_test(1, 0)) - { - return CELL_EPERM; - } - + // TODO: seems to do nothing return CELL_OK; }