[Scummvm-cvs-logs] CVS: scummvm/scumm/imuse_digi dimuse_bndmgr.cpp,1.18,1.19

Pawel Kolodziejski aquadran at users.sourceforge.net
Sat Jun 19 08:06:05 CEST 2004


Update of /cvsroot/scummvm/scummvm/scumm/imuse_digi
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7136/scummvm/scumm/imuse_digi

Modified Files:
	dimuse_bndmgr.cpp 
Log Message:
correct for last commit, changed dummy reads to seek

Index: dimuse_bndmgr.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/imuse_digi/dimuse_bndmgr.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- dimuse_bndmgr.cpp	19 Jun 2004 14:54:13 -0000	1.18
+++ dimuse_bndmgr.cpp	19 Jun 2004 15:05:18 -0000	1.19
@@ -104,6 +104,7 @@
 			name[z] = '\0';
 			strcpy(_budleDirCache[freeSlot].bundleTable[i].filename, name);
 			_budleDirCache[freeSlot].bundleTable[i].offset = file.readUint32BE();
+			file.seek(4);
 		}
 		return freeSlot;
 	} else {
@@ -184,8 +185,7 @@
 		_file.seek(_bundleTable[index].offset, SEEK_SET);
 		tag = _file.readUint32BE();
 		_numCompItems = num = _file.readUint32BE();
-		_file.readUint32BE();
-		_file.readUint32BE();
+		_file.seek(8);
 
 		if (tag != MKID_BE('COMP')) {
 			warning("BundleMgr::decompressSampleByIndex() Compressed sound %d invalid (%s)", index, tag2str(tag));
@@ -198,7 +198,7 @@
 			_compTable[i].offset = _file.readUint32BE();
 			_compTable[i].size = _file.readUint32BE();
 			_compTable[i].codec = _file.readUint32BE();
-			_file.readUint32BE();
+			_file.seek(4);
 			if (_compTable[i].size > maxSize)
 				maxSize = _compTable[i].size;
 		}





More information about the Scummvm-git-logs mailing list