From: Holger Schemel Date: Thu, 22 Oct 2015 21:21:02 +0000 (+0200) Subject: fixed aborting program due to '-psn' parameter when launched via GUI on Mac X-Git-Tag: 4.0.0.0-rc1~136 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=730deaee1a38f75d749a21cddbb562c2b339cc73;p=rocksndiamonds.git fixed aborting program due to '-psn' parameter when launched via GUI on Mac --- diff --git a/src/libgame/misc.c b/src/libgame/misc.c index 3a7c28f4..93a62e07 100644 --- a/src/libgame/misc.c +++ b/src/libgame/misc.c @@ -1139,6 +1139,12 @@ void GetOptions(int argc, char *argv[], /* when doing batch processing, always enable verbose mode (warnings) */ options.verbose = TRUE; } +#if defined(PLATFORM_MACOSX) + else if (strPrefix(option, "-psn")) + { + /* ignore process serial number when launched via GUI on Mac OS X */ + } +#endif else if (*option == '-') { Error(ERR_EXIT_HELP, "unrecognized option '%s'", option_str);