mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-23 10:35:03 +00:00
Update src/core/file_sys/fs.cpp
Co-authored-by: GPUCode <47210458+GPUCode@users.noreply.github.com>
This commit is contained in:
parent
c6459f35a7
commit
f8cc51496d
@ -60,6 +60,7 @@ void HandleTable::deleteHandle(int d) {
|
|||||||
delete m_files.at(d - RESERVED_HANDLES);
|
delete m_files.at(d - RESERVED_HANDLES);
|
||||||
m_files[d - RESERVED_HANDLES] = nullptr;
|
m_files[d - RESERVED_HANDLES] = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
File* HandleTable::getFile(int d) {
|
File* HandleTable::getFile(int d) {
|
||||||
std::unique_lock lock{m_mutex};
|
std::unique_lock lock{m_mutex};
|
||||||
return m_files.at(d - RESERVED_HANDLES);
|
return m_files.at(d - RESERVED_HANDLES);
|
||||||
|
Loading…
Reference in New Issue
Block a user