diff options
author | Jean-Luc Peurière <jlp@nerim.net> | 2004-11-08 01:21:47 +0300 |
---|---|---|
committer | Jean-Luc Peurière <jlp@nerim.net> | 2004-11-08 01:21:47 +0300 |
commit | 8daff51e0fab7bf06847e4e019d7b0b21ab4bb69 (patch) | |
tree | db942f1638f54e219a64b31daeec73bebf2907c7 /source/gameengine/GamePlayer/ghost | |
parent | ee607bdf785d8c3c0dcbd732b6c326940361d6a2 (diff) |
skip process serial number argument on os X
needed when starting player via drag & drop
Diffstat (limited to 'source/gameengine/GamePlayer/ghost')
-rw-r--r-- | source/gameengine/GamePlayer/ghost/GPG_ghost.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp index 60d49d047da..a4b03628a46 100644 --- a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp +++ b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp @@ -274,15 +274,17 @@ int main(int argc, char** argv) #endif // __APPLE__ GEN_init_messaging_system(); - + // Parse command line options #ifndef NDEBUG printf("argv[0] = '%s'\n", argv[0]); #endif + for (i = 1; (i < argc) && !error;) + { #ifndef NDEBUG - printf("argv[%d] = '%s'\n", i, argv[i]); + printf("argv[%d] = '%s' , %i\n", i, argv[i],argc); #endif if (argv[i][0] == '-') { @@ -342,6 +344,10 @@ int main(int argc, char** argv) error = true; printf("error: too few options for window argument.\n"); } + } else { /* mac specific */ + + if (strncmp(argv[i], "-psn_", 5)==0) + i++; /* skip process serial number */ } break; case 'f': |