[Scummvm-cvs-logs] CVS: scummvm/scumm resource.cpp,1.188,1.188.2.1

Jonathan Gray khalek at users.sourceforge.net
Sat Feb 28 16:48:07 CET 2004


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

Modified Files:
      Tag: branch-0-6-0
	resource.cpp 
Log Message:
add support for the standalone maniac mansion demo

Index: resource.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/resource.cpp,v
retrieving revision 1.188
retrieving revision 1.188.2.1
diff -u -d -r1.188 -r1.188.2.1
--- resource.cpp	11 Feb 2004 03:21:21 -0000	1.188
+++ resource.cpp	29 Feb 2004 00:30:03 -0000	1.188.2.1
@@ -112,12 +112,19 @@
 			}
 		} else {
 			sprintf(buf, "%.2d.lfl", room);
+			// Maniac Mansion demo has .man instead of .lfl
+			if (_gameId == GID_MANIAC)
+				sprintf(buf2, "%.2d.man", room);
 			encByte = (_features & GF_USE_KEY) ? 0xFF : 0;
 		}
 
 		result = openResourceFile(buf, encByte);
-		if ((result == false) && (buf2[0]))
+		if ((result == false) && (buf2[0])) {
 			result = openResourceFile(buf2, encByte);
+			// We have .man files so set demo mode
+			if (_gameId == GID_MANIAC)
+				_demoMode = true;
+		}
 			
 		if (result) {
 			if (room == 0)





More information about the Scummvm-git-logs mailing list