Add "GetFileInfoByHandle" function to (many) file systems

This commit is contained in:
Henrik Rydgård
2025-03-19 10:42:30 +01:00
parent c4241e283a
commit ef386ac4c5
11 changed files with 58 additions and 3 deletions
+4
View File
@@ -101,6 +101,10 @@ PSPFileInfo BlobFileSystem::GetFileInfo(std::string filename) {
return info;
}
PSPFileInfo BlobFileSystem::GetFileInfoByHandle(u32 handle) {
return GetFileInfo("");
}
bool BlobFileSystem::OwnsHandle(u32 handle) {
auto entry = entries_.find(handle);
return entry != entries_.end();