Ticket #7952: gameDetector.cpp.diff

File gameDetector.cpp.diff, 2.4 KB (added by fingolfin, 22 years ago)

gameDetector.cpp.diff

  • gameDetector.cpp

    RCS file: /cvsroot/scummvm/scummvm/gameDetector.cpp,v
    retrieving revision 1.30
    diff -u -d -r1.30 gameDetector.cpp
     
    3232static const char USAGE_STRING[] =
    3333        "ScummVM - Scumm Interpreter\n"
    3434        "Syntax:\n"
    35   "\tscummvm [-v] [-d] [-n] [-b<num>] [-t<num>] [-s<num>] [-p<path>] [-m<num>] [-f] game\n"
     35  "\tscummvm [-v] [-d] [-n] [-b<num>] [-t<num>] [-s<num>] [-p <path>] [-m<num>] [-f] game\n"
    3636        "Flags:\n"
    37         "\tv       - show version info and exit\n"
    38         "\tc<num>  - use cdrom <num> for cd audio\n"
    39         "\td       - enable debug output\n"
    40         "\tn       - no subtitles for speech\n"
    41         "\tb<num>  - start in room <num>\n"
    42         "\tt<num>  - set music tempo. Suggested: 1F0000\n"
    43         "\tp<path> - look for game in <path>\n"
    44         "\tm<num>  - set music volume to <num> (0-100)\n"
    45         "\ts<num>  - set sfx volume to <num> (0-255)\n"
    46         "\te<mode> - set music engine. see readme.txt for details\n"
    47         "\tr       - emulate roland mt32 instruments\n"
    48         "\tf       - fullscreen mode\n"
    49         "\tg<mode> - graphics mode. normal,2x,3x,2xsai,super2xsai,supereagle\n"
    50         "\ta       - specify game is amiga version\n"
     37        "\tv        - show version info and exit\n"
     38        "\tc<num>   - use cdrom <num> for cd audio\n"
     39        "\td        - enable debug output\n"
     40        "\tn        - no subtitles for speech\n"
     41        "\tb<num>   - start in room <num>\n"
     42        "\tt<num>   - set music tempo. Suggested: 1F0000\n"
     43        "\tp <path> - look for game in <path>\n"
     44        "\tm<num>   - set music volume to <num> (0-100)\n"
     45        "\ts<num>   - set sfx volume to <num> (0-255)\n"
     46        "\te<mode>  - set music engine. see readme.txt for details\n"
     47        "\tr        - emulate roland mt32 instruments\n"
     48        "\tf        - fullscreen mode\n"
     49        "\tg<mode>  - graphics mode. normal,2x,3x,2xsai,super2xsai,supereagle\n"
     50        "\ta        - specify game is amiga version\n"
    5151;
    5252
    5353void GameDetector::parseCommandLine(int argc, char **argv)
     
    9595#endif
    9696                                        exit(1);
    9797                                case 'p':
    98                                         if (*(s + 1) == '\0')
    99                                                 goto ShowHelpAndExit;
    100                                         _gameDataPath = s + 1;
     98                                        if (*(s + 1) == '\0') {
     99                                                if (i+1 < argc && argv[i+1] && argv[i+1][0] != '-' && argv[i+1][0] != '\0') {
     100                                                        i++;
     101                                                        _gameDataPath = argv[i];
     102                                                } else
     103                                                        goto ShowHelpAndExit;
     104                                        } else
     105                                                _gameDataPath = s + 1;
    101106                                        goto NextArg;
    102107                                case 't':
    103108                                        if (*(s + 1) == '\0')