[Scummvm-cvs-logs] CVS: scummvm/backends/dc vmsave.cpp,1.29,1.30

Marcus Comstedt marcus_c at users.sourceforge.net
Mon Jun 27 08:17:51 CEST 2005


Update of /cvsroot/scummvm/scummvm/backends/dc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5485

Modified Files:
	vmsave.cpp 
Log Message:
Implemented InVMSave::skip().

Index: vmsave.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/dc/vmsave.cpp,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- vmsave.cpp	26 Jun 2005 20:59:56 -0000	1.29
+++ vmsave.cpp	27 Jun 2005 15:16:05 -0000	1.30
@@ -222,6 +222,7 @@
   int pos, size;
 
   uint32 read(void *buf, uint32 cnt);
+  void skip(uint32 offset);
 
 public:
   InVMSave() 
@@ -327,6 +328,14 @@
   return cnt;
 }
 
+void InVMSave::skip(uint32 offset)
+{
+  int nbyt = offset;
+  if (pos + nbyt > size)
+    nbyt = (size - pos);
+  pos += nbyt;
+}
+
 uint32 OutVMSave::write(const void *buf, uint32 cnt)
 {
   int nbyt = cnt;





More information about the Scummvm-git-logs mailing list