Add Ioctl() to IFileSystem, cleaner.
This commit is contained in:
parent
8c34f5f78e
commit
dbf86187e3
10 changed files with 71 additions and 28 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue