diff --git a/Source/Core/Common/File.cpp b/Source/Core/Common/File.cpp index f3ede54fc2..9dfcdbd7d8 100644 --- a/Source/Core/Common/File.cpp +++ b/Source/Core/Common/File.cpp @@ -85,7 +85,7 @@ void IOFile::SetHandle(std::FILE* file) m_file = file; } -u64 IOFile::GetSize() +u64 IOFile::GetSize() const { if (IsOpen()) return File::GetSize(m_file); diff --git a/Source/Core/Common/File.h b/Source/Core/Common/File.h index 2b13da6bd6..3c9504b58a 100644 --- a/Source/Core/Common/File.h +++ b/Source/Core/Common/File.h @@ -74,7 +74,7 @@ public: bool Seek(s64 off, int origin); u64 Tell() const; - u64 GetSize(); + u64 GetSize() const; bool Resize(u64 size); bool Flush();