sdl - fixed "--help" fix introduced with previous revision
This commit is contained in:
parent
cff16d4ae4
commit
68200c2d6a
|
@ -499,12 +499,15 @@ int main(int argc, char *argv[])
|
||||||
// this is a hackish check for the --help arguemnts
|
// this is a hackish check for the --help arguemnts
|
||||||
// these are normally processed by the config parser, but SDL_Init
|
// these are normally processed by the config parser, but SDL_Init
|
||||||
// must be run before the config parser: so if even SDL_Init fails,
|
// must be run before the config parser: so if even SDL_Init fails,
|
||||||
// these four lines will still print the help output
|
// these six lines will still print the help output
|
||||||
if( !strcmp(argv[1], "--help") || !strcmp(argv[1],"-h"))
|
if(argc > 1)
|
||||||
|
{
|
||||||
|
if(!strcmp(argv[1], "--help") || !strcmp(argv[1],"-h"))
|
||||||
{
|
{
|
||||||
ShowUsage(argv[0]);
|
ShowUsage(argv[0]);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int error, frameskip;
|
int error, frameskip;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue