[Scummvm-cvs-logs] CVS: scummvm/sword2 function.cpp,1.79,1.80
Max Horn
fingolfin at users.sourceforge.net
Fri Apr 22 10:40:49 CEST 2005
Update of /cvsroot/scummvm/scummvm/sword2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14723/sword2
Modified Files:
function.cpp
Log Message:
* 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
Index: function.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/function.cpp,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -d -r1.79 -r1.80
--- function.cpp 27 Feb 2005 16:11:17 -0000 1.79
+++ function.cpp 22 Apr 2005 17:40:09 -0000 1.80
@@ -3032,7 +3032,7 @@
}
char buffer[80];
- char *line = f.gets(buffer, sizeof(buffer));
+ char *line = f.readLine(buffer, sizeof(buffer));
if (!line || *line == 0) {
if (!hasCenterMark) {
More information about the Scummvm-git-logs
mailing list