aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-06-21 20:21:40 +0000
committerMax Horn2003-06-21 20:21:40 +0000
commit2db275b1096cd00c61498dc5c264149e6e6c9458 (patch)
tree3d1ef571d63e2788518d2c24d62d11f2991735cf
parent720837abd92da3ac95debbf71619275245bc3a89 (diff)
downloadscummvm-rg350-2db275b1096cd00c61498dc5c264149e6e6c9458.tar.gz
scummvm-rg350-2db275b1096cd00c61498dc5c264149e6e6c9458.tar.bz2
scummvm-rg350-2db275b1096cd00c61498dc5c264149e6e6c9458.zip
make File constructor virtual to allow subclassing; made seek default to SEEK_SET mode for conveniance
svn-id: r8587
-rw-r--r--common/file.h4
1 files 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();