summaryrefslogtreecommitdiff
path: root/src/common/file_util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/file_util.cpp')
-rw-r--r--src/common/file_util.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index 578c673b9..7d96d04d9 100644
--- a/src/common/file_util.cpp
+++ b/src/common/file_util.cpp
@@ -930,12 +930,12 @@ bool IOFile::Close()
930 return m_good; 930 return m_good;
931} 931}
932 932
933u64 IOFile::GetSize() 933u64 IOFile::GetSize() const
934{ 934{
935 if (IsOpen()) 935 if (IsOpen())
936 return FileUtil::GetSize(m_file); 936 return FileUtil::GetSize(m_file);
937 else 937
938 return 0; 938 return 0;
939} 939}
940 940
941bool IOFile::Seek(s64 off, int origin) 941bool IOFile::Seek(s64 off, int origin)
@@ -946,12 +946,12 @@ bool IOFile::Seek(s64 off, int origin)
946 return m_good; 946 return m_good;
947} 947}
948 948
949u64 IOFile::Tell() 949u64 IOFile::Tell() const
950{ 950{
951 if (IsOpen()) 951 if (IsOpen())
952 return ftello(m_file); 952 return ftello(m_file);
953 else 953
954 return -1; 954 return -1;
955} 955}
956 956
957bool IOFile::Flush() 957bool IOFile::Flush()