[Scummvm-cvs-logs] CVS: scummvm/common stream.h,1.22,1.23

Marcus Comstedt marcus_c at users.sourceforge.net
Thu Oct 13 11:52:25 CEST 2005


Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27614/common

Modified Files:
	stream.h 
Log Message:
Improved savefile error handling:

* New flush() method in WriteStream class to flush pending I/O, in order
  to detect any I/O errors

* Use of flush() and ioFailed() added to scumm engine save function

* Dreamcast backend extended to support the new checks


Index: stream.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/stream.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- stream.h	30 Jul 2005 21:10:58 -0000	1.22
+++ stream.h	13 Oct 2005 18:50:53 -0000	1.23
@@ -67,6 +67,12 @@
 	 */
 	virtual uint32 write(const void *dataPtr, uint32 dataSize) = 0;
 
+	/**
+	 * Commit any buffered data to the underlying channel or
+	 * storage medium; unbuffered streams can use the default
+	 * implementation.
+	 */
+	virtual void flush() {}
 
 	// The remaining methods all have default implementations; subclasses
 	// need not (and should not) overload them.





More information about the Scummvm-git-logs mailing list