Fixed STK to not stumble upon command-line arguments that the OS X Finder might pass to the process
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4837 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -462,6 +462,10 @@ int handleCmdLine(int argc, char **argv)
|
||||
else if( !strcmp(argv[i], "--fullscreen") || !strcmp(argv[i], "-f")) {}
|
||||
else if( !strcmp(argv[i], "--windowed") || !strcmp(argv[i], "-w")) {}
|
||||
else if( !strcmp(argv[i], "--version") || !strcmp(argv[i], "-v")) {}
|
||||
#ifdef __APPLE__
|
||||
// on OS X, sometimes the Finder will pass a -psn* something parameter to the application
|
||||
else if( strncmp(argv[i], "-psn", 3) == 0) {}
|
||||
#endif
|
||||
else
|
||||
{
|
||||
fprintf ( stderr, "Invalid parameter: %s.\n\n", argv[i] );
|
||||
|
||||
Reference in New Issue
Block a user