diff options
author | Max Horn | 2004-07-26 17:06:39 +0000 |
---|---|---|
committer | Max Horn | 2004-07-26 17:06:39 +0000 |
commit | 17ec7c5d6abdbaba0fa55023ac896ff560315e46 (patch) | |
tree | 6b351f944f9719be2b8b9a7282ef1ec07f86e770 | |
parent | 2fedf7d285e01bfade39ce907400614cd7e13812 (diff) | |
download | scummvm-rg350-17ec7c5d6abdbaba0fa55023ac896ff560315e46.tar.gz scummvm-rg350-17ec7c5d6abdbaba0fa55023ac896ff560315e46.tar.bz2 scummvm-rg350-17ec7c5d6abdbaba0fa55023ac896ff560315e46.zip |
Turn various File class methods into virtual methods, to allow overloading
svn-id: r14341
-rw-r--r-- | common/file.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/common/file.h b/common/file.h index a55f4f086c..5ee3d80a4a 100644 --- a/common/file.h +++ b/common/file.h @@ -61,16 +61,16 @@ public: void incRef(); void decRef(); - bool open(const char *filename, AccessMode mode = kFileReadMode, const char *directory = NULL); - void close(); + virtual bool open(const char *filename, AccessMode mode = kFileReadMode, const char *directory = NULL); + virtual void close(); bool isOpen() const; bool ioFailed() const; void clearIOFailed(); - bool eof(); - uint32 pos(); - uint32 size(); + virtual bool eof(); + virtual uint32 pos(); + virtual uint32 size(); const char *name() const { return _name; } - void seek(int32 offs, int whence = SEEK_SET); + virtual void seek(int32 offs, int whence = SEEK_SET); uint32 read(void *ptr, uint32 size); uint32 write(const void *ptr, uint32 size); }; |