SDL: added --help and -h options to show usage

This commit is contained in:
punkrockguy318 2010-02-20 03:41:07 +00:00
parent d1bab4ef09
commit b0786740a2
1 changed files with 10 additions and 0 deletions

View File

@ -664,6 +664,16 @@ SDL_GL_LoadLibrary(0);
return 0;
}
for(int i=0; i<argc;i++)
{
if(strcmp(argv[i], "--help") == 0 || strcmp(argv[i], "-h") == 0)
{
ShowUsage(argv[0]);
SDL_Quit();
return 0;
}
}
#ifndef _GTK2
if(romIndex <= 0) {