[Scummvm-cvs-logs] CVS: scummvm/common file.h,1.13,1.14

Max Horn fingolfin at users.sourceforge.net
Sat Jun 21 13:22:05 CEST 2003


Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1:/tmp/cvs-serv26061

Modified Files:
	file.h 
Log Message:
make File constructor virtual to allow subclassing; made seek default to SEEK_SET mode for conveniance

Index: file.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/file.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- file.h	28 May 2003 19:03:12 -0000	1.13
+++ file.h	21 Jun 2003 20:21:40 -0000	1.14
@@ -43,7 +43,7 @@
 	};
 
 	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 @@
 	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();





More information about the Scummvm-git-logs mailing list