[Scummvm-cvs-logs] CVS: scummvm/sword2 resman.cpp,1.66,1.67

Torbj?rn Andersson eriktorbjorn at users.sourceforge.net
Tue Nov 11 07:08:09 CET 2003


Update of /cvsroot/scummvm/scummvm/sword2
In directory sc8-pr-cvs1:/tmp/cvs-serv17246

Modified Files:
	resman.cpp 
Log Message:
Extended the "res" debugger command to print information about where the
game expects to find the various cluster files. I plan to look into making
the game playable from CD, and this should help during the testing.


Index: resman.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/resman.cpp,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -d -r1.66 -r1.67
--- resman.cpp	11 Nov 2003 07:43:02 -0000	1.66
+++ resman.cpp	11 Nov 2003 15:07:35 -0000	1.67
@@ -731,8 +731,23 @@
 
 void ResourceManager::printConsoleClusters(void) {
 	if (_totalClusters) {
-		for (uint i = 0; i < _totalClusters; i++)
-			Debug_Printf("%s\n", _resourceFiles[i]);
+		for (uint i = 0; i < _totalClusters; i++) {
+			Debug_Printf("%-20s ", _resourceFiles[i]);
+			if (!(_cdTab[i] & LOCAL_PERM)) {
+				switch (_cdTab[i] & 3) {
+				case BOTH:
+					Debug_Printf("CD 1 & 2\n");
+					break;
+				case CD1:
+					Debug_Printf("CD 1\n");
+					break;
+				case CD2:
+					Debug_Printf("CD 2\n");
+					break;
+				}
+			} else
+				Debug_Printf("HD\n");
+		}
 		Debug_Printf("%d resources\n", _totalResFiles);
 	} else
 		Debug_Printf("Argh! No resources!\n");
@@ -982,7 +997,7 @@
 
 	g_logic->fnStopMusic(NULL);
 
-	_vm->clearFxQueue();	// stops all fx & clears the queue (James22july97)
+	_vm->clearFxQueue();	// stops all fx & clears the queue
 	getCd(_cdTab[newCluster] & 3);
 
 	// Kick out old cached cluster and load the new one.





More information about the Scummvm-git-logs mailing list