[Scummvm-cvs-logs] CVS: tools rescumm.c,1.5,1.6

Jonathan Gray khalek at users.sourceforge.net
Fri Aug 1 21:03:02 CEST 2003


Update of /cvsroot/scummvm/tools
In directory sc8-pr-cvs1:/tmp/cvs-serv10533

Modified Files:
	rescumm.c 
Log Message:
rescumm update from the original author

Index: rescumm.c
===================================================================
RCS file: /cvsroot/scummvm/tools/rescumm.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- rescumm.c	6 Dec 2002 17:17:21 -0000	1.5
+++ rescumm.c	2 Aug 2003 04:02:48 -0000	1.6
@@ -1,5 +1,5 @@
 /* ReScumm - Split one-big-file Macintosh game data into seperate .00x files for ScummVM
- * Copyright (C) 2001  Casey Hutchinson
+ * Copyright (C) 2001-2003  Casey Hutchinson
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -44,9 +44,12 @@
 	le = (*(char *)(&le));
 
 	if (argc < 2) {
-		fputs
-			("error: you must specify the mac data file on the command line.\n i.e. \% macextract \"Sam & Max Demo Data\"\n",
-			 stderr);
+		fputs("error: you must specify the mac data file on the command line.\n", stderr);
+		fputs(" i.e. \% rescumm \"Sam & Max Demo Data\"\n", stderr);
+		fputs("\nA note on usage. Some Lucas Arts CDs appear to contains only an application.\n", stderr);
+		fputs("They actually contain a seperate data file as an invisible file.\n", stderr);
+			 
+			
 		exit(0);
 	}
 
@@ -129,9 +132,9 @@
 #endif
 		}
 		if (j == 0x20) {
-			fprintf(stderr, "\nerror: \'%s\'. file name not null terminated.\n", data_file_name);
-			fclose(ifp);
-			exit(0);
+			file_name[0x1f] = 0;
+			fprintf(stderr, "\nwarning: \'%s\'. file name not null terminated.\n", file_name);
+			fprintf(stderr, "data file \'%s\' may be not a file rescumm can extract.\n", data_file_name);
 		}
 		printf(", saving as \'%s\'\n", file_name);
 





More information about the Scummvm-git-logs mailing list