mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
Add logging for cellFsSdataOpenByFd
This commit is contained in:
parent
ed66e9e9b9
commit
3e8b003515
1 changed files with 5 additions and 3 deletions
|
@ -2054,21 +2054,23 @@ error_code sys_fs_fcntl(ppu_thread& ppu, u32 fd, u32 op, vm::ptr<void> _arg, u32
|
||||||
|
|
||||||
if (!file)
|
if (!file)
|
||||||
{
|
{
|
||||||
return CELL_EBADF;
|
return {CELL_EBADF, "fd=%u", fd};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sys_fs.warning("sys_fs_fcntl(0x80000009): fd=%d, arg->offset=0x%x, size=0x%x (file: %s)", fd, arg->offset, _size, *file);
|
||||||
|
|
||||||
std::lock_guard lock(file->mp->mutex);
|
std::lock_guard lock(file->mp->mutex);
|
||||||
|
|
||||||
if (!file->file)
|
if (!file->file)
|
||||||
{
|
{
|
||||||
return CELL_EBADF;
|
return {CELL_EBADF, "fd=%u", fd};
|
||||||
}
|
}
|
||||||
|
|
||||||
auto sdata_file = std::make_unique<EDATADecrypter>(lv2_file::make_view(file, arg->offset));
|
auto sdata_file = std::make_unique<EDATADecrypter>(lv2_file::make_view(file, arg->offset));
|
||||||
|
|
||||||
if (!sdata_file->ReadHeader())
|
if (!sdata_file->ReadHeader())
|
||||||
{
|
{
|
||||||
return CELL_EFSSPECIFIC;
|
return {CELL_EFSSPECIFIC, "fd=%u", fd};
|
||||||
}
|
}
|
||||||
|
|
||||||
fs::file stream;
|
fs::file stream;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue