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
+8
View File
@@ -489,6 +489,10 @@ bool DirectoryFileSystem::OwnsHandle(u32 handle) {
return (iter != entries.end());
}
int DirectoryFileSystem::Ioctl(u32 handle, u32 cmd, u32 indataPtr, u32 inlen, u32 outdataPtr, u32 outlen, int &usec) {
return SCE_KERNEL_ERROR_ERRNO_FUNCTION_NOT_SUPPORTED;
}
size_t DirectoryFileSystem::ReadFile(u32 handle, u8 *pointer, s64 size) {
EntryMap::iterator iter = entries.find(handle);
if (iter != entries.end())
@@ -767,6 +771,10 @@ bool VFSFileSystem::OwnsHandle(u32 handle) {
return (iter != entries.end());
}
int VFSFileSystem::Ioctl(u32 handle, u32 cmd, u32 indataPtr, u32 inlen, u32 outdataPtr, u32 outlen, int &usec) {
return SCE_KERNEL_ERROR_ERRNO_FUNCTION_NOT_SUPPORTED;
}
size_t VFSFileSystem::ReadFile(u32 handle, u8 *pointer, s64 size) {
INFO_LOG(FILESYS,"VFSFileSystem::ReadFile %08x %p %i", handle, pointer, (u32)size);
EntryMap::iterator iter = entries.find(handle);