From 2db275b1096cd00c61498dc5c264149e6e6c9458 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 21 Jun 2003 20:21:40 +0000 Subject: make File constructor virtual to allow subclassing; made seek default to SEEK_SET mode for conveniance svn-id: r8587 --- common/file.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/file.h b/common/file.h index 6d4cc7c545..2690e6fd6e 100644 --- a/common/file.h +++ b/common/file.h @@ -43,7 +43,7 @@ public: }; File(); - ~File(); + virtual ~File(); bool open(const char *filename, const char *directory, int mode = kFileReadMode, byte encbyte = 0); void close(); bool isOpen(); @@ -53,7 +53,7 @@ public: uint32 pos(); uint32 size(); const char *name() const { return _name; } - void seek(int32 offs, int whence); + void seek(int32 offs, int whence = SEEK_SET); uint32 read(void *ptr, uint32 size); byte readByte(); uint16 readUint16LE(); -- cgit v1.2.3