mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-12 02:59:51 +00:00
sys_fs: disable sys_fs_lsn_lock/unlock
According to test, nothing seems to happen. Disable CELL_EBUSY errors associated with Stream Support API.
This commit is contained in:
parent
f3d52de429
commit
9c54305e10
1 changed files with 2 additions and 12 deletions
|
@ -1792,12 +1792,7 @@ error_code sys_fs_lsn_lock(ppu_thread& ppu, u32 fd)
|
||||||
return CELL_EBADF;
|
return CELL_EBADF;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: research correct implementation
|
// TODO: seems to do nothing
|
||||||
if (!file->lock.compare_and_swap_test(0, 1))
|
|
||||||
{
|
|
||||||
return CELL_EBUSY;
|
|
||||||
}
|
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1812,12 +1807,7 @@ error_code sys_fs_lsn_unlock(ppu_thread& ppu, u32 fd)
|
||||||
return CELL_EBADF;
|
return CELL_EBADF;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: research correct implementation
|
// TODO: seems to do nothing
|
||||||
if (!file->lock.compare_and_swap_test(1, 0))
|
|
||||||
{
|
|
||||||
return CELL_EPERM;
|
|
||||||
}
|
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue