mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-27 14:33:00 +00:00
file_util: const qualify IOFile's Tell and GetSize functions
This commit is contained in:
parent
a4120ca66c
commit
655623ebb2
|
@ -930,11 +930,11 @@ bool IOFile::Close()
|
|||
return m_good;
|
||||
}
|
||||
|
||||
u64 IOFile::GetSize()
|
||||
u64 IOFile::GetSize() const
|
||||
{
|
||||
if (IsOpen())
|
||||
return FileUtil::GetSize(m_file);
|
||||
else
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -946,11 +946,11 @@ bool IOFile::Seek(s64 off, int origin)
|
|||
return m_good;
|
||||
}
|
||||
|
||||
u64 IOFile::Tell()
|
||||
u64 IOFile::Tell() const
|
||||
{
|
||||
if (IsOpen())
|
||||
return ftello(m_file);
|
||||
else
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
@ -247,8 +247,8 @@ public:
|
|||
explicit operator bool() const { return IsGood(); }
|
||||
|
||||
bool Seek(s64 off, int origin);
|
||||
u64 Tell();
|
||||
u64 GetSize();
|
||||
u64 Tell() const;
|
||||
u64 GetSize() const;
|
||||
bool Resize(u64 size);
|
||||
bool Flush();
|
||||
|
||||
|
|
Loading…
Reference in a new issue