mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 15:36:26 +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
|
|
@ -81,7 +81,7 @@ struct syscache_info
|
|||
{
|
||||
idm::select<lv2_fs_object, lv2_file>([](u32 /*id*/, lv2_file& file)
|
||||
{
|
||||
if (file.file && std::memcmp("/dev_hdd1/", file.name.data(), 10) == 0)
|
||||
if (file.file && file.mp->flags & lv2_mp_flag::cache)
|
||||
{
|
||||
file.lock = 2;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue