[Scummvm-cvs-logs] CVS: scummvm/sound/softsynth mt32.cpp,1.9,1.10

Max Horn fingolfin at users.sourceforge.net
Fri Apr 22 10:40:51 CEST 2005


Update of /cvsroot/scummvm/scummvm/sound/softsynth
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14723/sound/softsynth

Modified Files:
	mt32.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: mt32.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/softsynth/mt32.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- mt32.cpp	9 Apr 2005 01:52:43 -0000	1.9
+++ mt32.cpp	22 Apr 2005 17:40:09 -0000	1.10
@@ -90,7 +90,7 @@
 		return file.read(in, size);
 	}
 	bool readLine(char *in, size_t size) {
-		return file.gets(in, size) != NULL;
+		return file.readLine(in, size) != NULL;
 	}
 	bool readBit8u(MT32Emu::Bit8u *in) {
 		byte b = file.readByte();





More information about the Scummvm-git-logs mailing list