From 5ae7dbf77cefa0b8cfc19ea7a6d84adfb1d02593 Mon Sep 17 00:00:00 2001 From: Eladash Date: Tue, 21 Sep 2021 11:45:32 +0300 Subject: [PATCH] Fix cellFsSdataOpenByFd flags --- rpcs3/Emu/Cell/lv2/sys_fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_fs.cpp b/rpcs3/Emu/Cell/lv2/sys_fs.cpp index 5c97684b91..986cd4d0e7 100644 --- a/rpcs3/Emu/Cell/lv2/sys_fs.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_fs.cpp @@ -1467,7 +1467,7 @@ error_code sys_fs_fcntl(ppu_thread& ppu, u32 fd, u32 op, vm::ptr _arg, u32 return nullptr; } - return std::make_shared(file, std::move(stream), file.mode, file.flags, file.real_path, lv2_file_type::sdata); + return std::make_shared(file, std::move(stream), file.mode, CELL_FS_O_RDONLY, file.real_path, lv2_file_type::sdata); })) { arg->out_code = CELL_OK;