mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 23:15:18 +00:00
File utility improved
+ minor fixes
This commit is contained in:
parent
5029dff73a
commit
b3e3c68f15
75 changed files with 839 additions and 964 deletions
|
|
@ -12,9 +12,10 @@ bool vfsLocalFile::Open(const std::string& path, u32 mode)
|
|||
return m_file.open(path, mode) && vfsFileBase::Open(path, mode);
|
||||
}
|
||||
|
||||
bool vfsLocalFile::Close()
|
||||
void vfsLocalFile::Close()
|
||||
{
|
||||
return m_file.close() && vfsFileBase::Close();
|
||||
m_file.close();
|
||||
vfsFileBase::Close();
|
||||
}
|
||||
|
||||
u64 vfsLocalFile::GetSize() const
|
||||
|
|
@ -32,14 +33,14 @@ u64 vfsLocalFile::Read(void* dst, u64 size)
|
|||
return m_file.read(dst, size);
|
||||
}
|
||||
|
||||
u64 vfsLocalFile::Seek(s64 offset, fsm mode)
|
||||
u64 vfsLocalFile::Seek(s64 offset, fs::seek_mode whence)
|
||||
{
|
||||
return m_file.seek(offset, mode);
|
||||
return m_file.seek(offset, whence);
|
||||
}
|
||||
|
||||
u64 vfsLocalFile::Tell() const
|
||||
{
|
||||
return m_file.seek(0, fsm::cur);
|
||||
return m_file.seek(0, fs::seek_cur);
|
||||
}
|
||||
|
||||
bool vfsLocalFile::IsOpened() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue