mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-03-28 14:19:52 -06:00
cellFsOpen flag fix
This commit is contained in:
parent
0526bfd7de
commit
4baa159523
@ -230,6 +230,11 @@ error_code sys_fs_open(vm::cptr<char> path, s32 flags, vm::ptr<u32> fd, s32 mode
|
||||
if (flags & CELL_FS_O_CREAT)
|
||||
{
|
||||
open_mode += fs::create;
|
||||
|
||||
if (flags & CELL_FS_O_EXCL)
|
||||
{
|
||||
open_mode += fs::excl;
|
||||
}
|
||||
}
|
||||
|
||||
if (flags & CELL_FS_O_TRUNC)
|
||||
@ -242,18 +247,6 @@ error_code sys_fs_open(vm::cptr<char> path, s32 flags, vm::ptr<u32> fd, s32 mode
|
||||
open_mode += fs::append;
|
||||
}
|
||||
|
||||
if (flags & CELL_FS_O_EXCL)
|
||||
{
|
||||
if (flags & CELL_FS_O_CREAT)
|
||||
{
|
||||
open_mode += fs::excl;
|
||||
}
|
||||
else
|
||||
{
|
||||
open_mode = {}; // error
|
||||
}
|
||||
}
|
||||
|
||||
if (flags & CELL_FS_O_MSELF)
|
||||
{
|
||||
open_mode = fs::read;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user