Add Ioctl() to IFileSystem, cleaner.

This commit is contained in:
Unknown W. Brackets
2013-12-27 08:03:59 -08:00
parent 8c34f5f78e
commit dbf86187e3
10 changed files with 71 additions and 28 deletions
+9
View File
@@ -479,6 +479,15 @@ bool MetaFileSystem::RemoveFile(const std::string &filename)
}
}
int MetaFileSystem::Ioctl(u32 handle, u32 cmd, u32 indataPtr, u32 inlen, u32 outdataPtr, u32 outlen, int &usec)
{
lock_guard guard(lock);
IFileSystem *sys = GetHandleOwner(handle);
if (sys)
return sys->Ioctl(handle, cmd, indataPtr, inlen, outdataPtr, outlen, usec);
return SCE_KERNEL_ERROR_ERROR;
}
void MetaFileSystem::CloseFile(u32 handle)
{
lock_guard guard(lock);