[Scummvm-cvs-logs] CVS: scummvm/sword2 resman.cpp,1.92,1.93

Torbj?rn Andersson eriktorbjorn at users.sourceforge.net
Sun May 9 06:21:08 CEST 2004


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

Modified Files:
	resman.cpp 
Log Message:
My recent sound changes broke "restart". This should un-break it again.


Index: resman.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/resman.cpp,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -d -r1.92 -r1.93
--- resman.cpp	1 May 2004 10:42:16 -0000	1.92
+++ resman.cpp	9 May 2004 13:20:12 -0000	1.93
@@ -758,6 +758,12 @@
  */
 
 void ResourceManager::removeAll(void) {
+	// We need to clear the FX queue, because otherwise the sound system
+	// will still believe that the sound resources are in memory, and that
+	// it's ok to close them.
+
+	_vm->clearFxQueue();
+
 	for (uint i = 0; i < _totalResFiles; i++)
 		remove(i);
 }





More information about the Scummvm-git-logs mailing list