mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 15:48:39 +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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue