sys_fs: return CELL_ENOTSUP in sys_fs_fcntl(0xc0000006)

This commit is contained in:
Nekotekina 2020-01-09 03:57:44 +03:00
parent 9075208c80
commit 7523416a12
2 changed files with 4 additions and 2 deletions

View File

@ -1203,7 +1203,9 @@ error_code sys_fs_fcntl(ppu_thread& ppu, u32 fd, u32 op, vm::ptr<void> _arg, u32
{
const auto arg = vm::static_ptr_cast<lv2_file_c0000006>(_arg);
sys_fs.warning("0xc0000006: 0x%x, 0x%x, 0x%x, %s, 0x%x, 0x%x, 0x%x", arg->size, arg->_x4, arg->_x8, arg->name, arg->_x14, arg->_x18, arg->_x1c);
sys_fs.warning("0xc0000006: 0x%x, 0x%x, 0x%x, %s, 0x%x, 0x%x, 0x%x", arg->size, arg->_x4, arg->_x8, arg->name, arg->_x14, arg->code, arg->_x1c);
arg->code = CELL_ENOTSUP;
return CELL_OK;
}

View File

@ -339,7 +339,7 @@ struct lv2_file_c0000006 : lv2_file_op
be_t<u32> _xc; // 0x9
vm::bcptr<char> name;
be_t<u32> _x14; // 0
be_t<u32> _x18; // 0x80010003
be_t<u32> code; // 0x80010003
be_t<u32> _x1c; // 0
};