RCS file: /cvsroot/scummvm/tools/rescumm.c,v
retrieving revision 1.5
diff -u -r1.5 rescumm.c
|
|
|
1 | 1 | /* ReScumm - Split one-big-file Macintosh game data into seperate .00x files for ScummVM |
2 | | * Copyright (C) 2001 Casey Hutchinson |
| 2 | * Copyright (C) 2001-2003 Casey Hutchinson |
3 | 3 | * |
4 | 4 | * This program is free software; you can redistribute it and/or |
5 | 5 | * modify it under the terms of the GNU General Public License |
… |
… |
|
44 | 44 | le = (*(char *)(&le)); |
45 | 45 | |
46 | 46 | if (argc < 2) { |
47 | | fputs |
48 | | ("error: you must specify the mac data file on the command line.\n i.e. \% macextract \"Sam & Max Demo Data\"\n", |
49 | | stderr); |
| 47 | fputs("error: you must specify the mac data file on the command line.\n", stderr); |
| 48 | fputs(" i.e. \% rescumm \"Sam & Max Demo Data\"\n", stderr); |
| 49 | fputs("\nA note on usage. Some Lucas Arts CDs appear to contains only an application.\n", stderr); |
| 50 | fputs("They actually contain a seperate data file as an invisible file.\n", stderr); |
| 51 | |
| 52 | |
50 | 53 | exit(0); |
51 | 54 | } |
52 | 55 | |
… |
… |
|
129 | 132 | #endif |
130 | 133 | } |
131 | 134 | if (j == 0x20) { |
132 | | fprintf(stderr, "\nerror: \'%s\'. file name not null terminated.\n", data_file_name); |
133 | | fclose(ifp); |
134 | | exit(0); |
| 135 | file_name[0x1f] = 0; |
| 136 | fprintf(stderr, "\nwarning: \'%s\'. file name not null terminated.\n", file_name); |
| 137 | fprintf(stderr, "data file \'%s\' may be not a file rescumm can extract.\n", data_file_name); |
135 | 138 | } |
136 | 139 | printf(", saving as \'%s\'\n", file_name); |
137 | 140 | |