void MetaFileSystem::CloseFile(u32 handle) { lock_guard guard(lock); IFileSystem *sys = GetHandleOwner(handle); if (sys) sys->CloseFile(handle); }
void MetaFileSystem::CloseFile(u32 handle) { std::lock_guard<std::recursive_mutex> guard(lock); IFileSystem *sys = GetHandleOwner(handle); if (sys) sys->CloseFile(handle); }
int MetaFileSystem::DevType(u32 handle) { lock_guard guard(lock); IFileSystem *sys = GetHandleOwner(handle); if (sys) return sys->DevType(handle); return SCE_KERNEL_ERROR_ERROR; }
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; }
size_t MetaFileSystem::SeekFile(u32 handle, s32 position, FileMove type) { IFileSystem *sys = GetHandleOwner(handle); if (sys) return sys->SeekFile(handle,position,type); else return 0; }
size_t MetaFileSystem::WriteFile(u32 handle, const u8 *pointer, s64 size) { IFileSystem *sys = GetHandleOwner(handle); if (sys) return sys->WriteFile(handle,pointer,size); else return 0; }
size_t MetaFileSystem::ReadFile(u32 handle, u8 *pointer, s64 size) { IFileSystem *sys = GetHandleOwner(handle); if (sys) return sys->ReadFile(handle,pointer,size); else return 0; }
size_t MetaFileSystem::SeekFile(u32 handle, s32 position, FileMove type) { std::lock_guard<std::recursive_mutex> guard(lock); IFileSystem *sys = GetHandleOwner(handle); if (sys) return sys->SeekFile(handle,position,type); else return 0; }
size_t MetaFileSystem::WriteFile(u32 handle, const u8 *pointer, s64 size) { std::lock_guard<std::recursive_mutex> guard(lock); IFileSystem *sys = GetHandleOwner(handle); if (sys) return sys->WriteFile(handle,pointer,size); else return 0; }
void MetaFileSystem::CloseFile(u32 handle) { IFileSystem *sys = GetHandleOwner(handle); if (sys) sys->CloseFile(handle); }