[Scummvm-cvs-logs] CVS: scummvm resource.cpp,1.80,1.81

Max Horn fingolfin at users.sourceforge.net
Sat May 11 18:59:01 CEST 2002


Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv30136

Modified Files:
	resource.cpp 
Log Message:
make unknown sound basetags only generate a warning not an error (works around problem in MI1/Mac)

Index: resource.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/resource.cpp,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -d -r1.80 -r1.81
--- resource.cpp	11 May 2002 20:00:32 -0000	1.80
+++ resource.cpp	12 May 2002 01:58:34 -0000	1.81
@@ -671,8 +671,8 @@
 		debug(1, "Ignoring base tag Mac1 in sound %d, size %d", idx, total_size);
 		debug(1, "It was at position %d", filePos(_fileHandle));
 	} else {
-		error("Unrecognized base tag %c%c%c%c in sound %d",
-					basetag & 0xff, basetag >> 8, basetag >> 16, basetag >> 24, idx);
+		fprintf(stderr, "WARNING: Unrecognized base tag 0x%08lx in sound %d\n",
+					basetag, idx);
 	}
 	res.roomoffs[type][idx] = 0xFFFFFFFF;
 	return 0;





More information about the Scummvm-git-logs mailing list