From 969ef3dac93a21d981e4cc2a8c81c0f03a834417 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 22 Apr 2005 17:40:09 +0000 Subject: * Added new virtual base class 'Stream', ReadStream and WriteStream are now subclasses of it. * Added new methods eos(), ioFailed(), clearIOFailed() to all streams. This allows better error checking. * SaveFile classes take advantage of these new standard stream APIS * Removed File::gets() * Added SeekableReadStream::readLine() (replaces File::gets) * Added WriteStream::writeString, for convenience svn-id: r17752 --- scumm/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scumm') diff --git a/scumm/util.h b/scumm/util.h index 48821755b1..4bef2ebe81 100644 --- a/scumm/util.h +++ b/scumm/util.h @@ -100,7 +100,7 @@ public: bool openSubFile(const char *filename); void close(); - bool eof() { return _stream->eof(); } + bool eof() { return _stream->eos(); } uint32 pos() { return _stream->pos(); } uint32 size() { return _stream->size(); } void seek(int32 offs, int whence = SEEK_SET) { _stream->seek(offs, whence); } -- cgit v1.2.3