[Scummvm-cvs-logs] CVS: tools queenrebuild.c,1.8,1.9

Joost Peters joostp at users.sourceforge.net
Wed Feb 11 13:14:00 CET 2004


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

Modified Files:
	queenrebuild.c 
Log Message:
Add support for the Hebrew talkie version and exit when using incorrect table file


Index: queenrebuild.c
===================================================================
RCS file: /cvsroot/scummvm/tools/queenrebuild.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- queenrebuild.c	30 Dec 2003 21:12:52 -0000	1.8
+++ queenrebuild.c	11 Feb 2004 21:08:39 -0000	1.9
@@ -32,6 +32,7 @@
 #define TEMP_MP3	"tempfile.mp3"
 #define TEMP_OGG	"tempfile.ogg"
 
+#define CURRENT_TBL_VERSION	1
 #define EXTRA_TBL_HEADER 8
 #define SB_HEADER_SIZE	110
 
@@ -52,11 +53,12 @@
 	VER_ITA_FLOPPY   = 6,
 	VER_ITA_TALKIE   = 7,
 	VER_SPA_TALKIE   = 8,
-	VER_DEMO_PCGAMES = 9,
-	VER_DEMO         = 10,
-	VER_INTERVIEW    = 11,
+	VER_HEB_TALKIE   = 9,
+	VER_DEMO_PCGAMES = 10,
+	VER_DEMO         = 11,
+	VER_INTERVIEW    = 12,
 
-	VER_NUMBER       = 12
+	VER_NUMBER       = 13
 };
 
 struct GameVersion {
@@ -90,9 +92,10 @@
 	{ "PIM10", 1, 0, 0x000866B1,  22461366 },
 	{ "CIM10", 0, 0, 0x0008BEE2, 190795582 },
 	{ "CSM10", 0, 0, 0x000B343C, 190730602 },
-	{ "PE100", 1, 1, 0x000DA981,   3724538 },
-	{ "PE100", 1, 1, 0x000DB63A,   3732177 },
-	{ "PEint", 1, 1, 0x000DC2F3,   1915913 }
+	{ "CHM10", 0, 0, 0x000DA981, 190705558 },
+	{ "PE100", 1, 1, 0x00101EC6,   3724538 },
+	{ "PE100", 1, 1, 0x00102B7F,   3732177 },
+	{ "PEint", 1, 1, 0x00103838,   1915913 }
 };
 
 
@@ -237,6 +240,10 @@
 		exit(-1);
 	} 
 
+	if (readUint32BE(inputTbl) != CURRENT_TBL_VERSION) {
+		printf("Error: You are using an incorrect (outdated?) version of the queen.tbl file\n");
+		exit(1);
+	}
 	version = detectGameVersion(size);
 	fseek(inputTbl, version->tableOffset, SEEK_SET); 
 





More information about the Scummvm-git-logs mailing list