Ticket #8267: rescumm.diff

File rescumm.diff, 1.6 KB (added by SF/nnooiissee, 21 years ago)

Da patch!

  • tools/rescumm.c

    RCS file: /cvsroot/scummvm/tools/rescumm.c,v
    retrieving revision 1.5
    diff -u -r1.5 rescumm.c
     
    11/* 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
    33 *
    44 * This program is free software; you can redistribute it and/or
    55 * modify it under the terms of the GNU General Public License
     
    4444        le = (*(char *)(&le));
    4545
    4646        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                       
    5053                exit(0);
    5154        }
    5255
     
    129132#endif
    130133                }
    131134                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);
    135138                }
    136139                printf(", saving as \'%s\'\n", file_name);
    137140