summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/file_util.cpp12
-rw-r--r--src/common/file_util.h4
2 files changed, 8 insertions, 8 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()
diff --git a/src/common/file_util.h b/src/common/file_util.h
index 8f72fb4e2..d520130ce 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -247,8 +247,8 @@ public:
247 explicit operator bool() const { return IsGood(); } 247 explicit operator bool() const { return IsGood(); }
248 248
249 bool Seek(s64 off, int origin); 249 bool Seek(s64 off, int origin);
250 u64 Tell(); 250 u64 Tell() const;
251 u64 GetSize(); 251 u64 GetSize() const;
252 bool Resize(u64 size); 252 bool Resize(u64 size);
253 bool Flush(); 253 bool Flush();
254 254