Applied curaga's patch for #675: don't create GUI with certain

command line options - thanks!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12666 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2013-04-17 07:00:30 +00:00
parent 816a7e9bbe
commit 2829f711c6

View File

@ -517,7 +517,8 @@ int handleCmdLinePreliminary(int argc, char **argv)
KartPropertiesManager::addKartSearchDir(argv[i+1]);
i++;
}
else if( !strcmp(argv[i], "--no-graphics") )
else if( !strcmp(argv[i], "--no-graphics") || !strncmp(argv[i], "--list-", 7) ||
!strcmp(argv[i], "-l" ))
{
ProfileWorld::disableGraphics();
}
@ -900,6 +901,8 @@ int handleCmdLine(int argc, char **argv)
}
Log::info("main", "Use --track N to choose track.");
exit(0);
}
else if( !strcmp(argv[i], "--list-karts") )
{
@ -916,6 +919,8 @@ int handleCmdLine(int argc, char **argv)
KP->getName());
//}
}
exit(0);
}
else if ( !strcmp(argv[i], "--no-start-screen")
|| !strcmp(argv[i], "-N") )