projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e8b5b6
)
fixed aborting program due to '-psn' parameter when launched via GUI on Mac
author
Holger Schemel
<info@artsoft.org>
Thu, 22 Oct 2015 21:21:02 +0000
(23:21 +0200)
committer
Holger Schemel
<info@artsoft.org>
Thu, 22 Oct 2015 21:21:02 +0000
(23:21 +0200)
src/libgame/misc.c
patch
|
blob
|
history
diff --git
a/src/libgame/misc.c
b/src/libgame/misc.c
index 3a7c28f4a3b0fe51fcf1d32e755286c119cab217..93a62e07d1a55ad5bf4c2ca2627491b4ff83effb 100644
(file)
--- 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);