Improve sceIoGetDevType() return values.

At least for block/file devices.  Can't find a way to get an alias.
This commit is contained in:
Unknown W. Brackets
2013-12-26 22:07:41 -08:00
parent 23971e9900
commit 0bf1ef5773
10 changed files with 66 additions and 16 deletions

View File

@@ -488,6 +488,15 @@ int MetaFileSystem::Ioctl(u32 handle, u32 cmd, u32 indataPtr, u32 inlen, u32 out
return SCE_KERNEL_ERROR_ERROR;
}
int MetaFileSystem::DevType(u32 handle)
{
lock_guard guard(lock);
IFileSystem *sys = GetHandleOwner(handle);
if (sys)
return sys->DevType(handle);
return SCE_KERNEL_ERROR_ERROR;
}
void MetaFileSystem::CloseFile(u32 handle)
{
lock_guard guard(lock);