mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-26 20:36:16 +00:00
More Fixes for Separate Update (#1487)
* handle getdents + fix condition + add info to description * fix not handling dents errors * to not overwrite it, only gather separate update entries when normal folder is done * fix always setting entries to 0 and guest name including "UPDATE" * reset indexes on completion * don't use concat, fixes long standing bug * make sce_module module loading take both paths into account
This commit is contained in:
parent
3c8e25e8e4
commit
aa5c1c10df
6 changed files with 119 additions and 29 deletions
|
@ -199,4 +199,14 @@ void HandleTable::CreateStdHandles() {
|
|||
setup("/dev/stderr", new Devices::Logger("stderr", true)); // stderr
|
||||
}
|
||||
|
||||
int HandleTable::GetFileDescriptor(File* file) {
|
||||
std::scoped_lock lock{m_mutex};
|
||||
auto it = std::find(m_files.begin(), m_files.end(), file);
|
||||
|
||||
if (it != m_files.end()) {
|
||||
return std::distance(m_files.begin(), it);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
} // namespace Core::FileSys
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue