Add Ioctl() to IFileSystem, cleaner.

This commit is contained in:
Unknown W. Brackets 2013-12-26 14:47:17 -08:00
parent 8c34f5f78e
commit dbf86187e3
10 changed files with 71 additions and 28 deletions

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);