mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Implement lv2_mp_flag::cache
Identify /dev_hdd1 without unsafe path comparison.
This commit is contained in:
parent
f801dc6558
commit
8fcebebae3
4 changed files with 5 additions and 6 deletions
|
|
@ -758,8 +758,7 @@ bool vfs::host::rename(const std::string& from, const std::string& to, const lv2
|
|||
|
||||
file.restore_data.seek_pos = file.file.pos();
|
||||
|
||||
if (std::memcmp(file.name.data(), "/dev_hdd1/", 10) != 0
|
||||
&& !(file.mp->flags & lv2_mp_flag::read_only) && file.flags & CELL_FS_O_ACCMODE)
|
||||
if (!(file.mp->flags & (lv2_mp_flag::read_only + lv2_mp_flag::cache)) && file.flags & CELL_FS_O_ACCMODE)
|
||||
{
|
||||
file.file.sync(); // For cellGameContentPermit atomicity
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue