From 34a965721b32653e0c63bcf015d6bcf71760458c Mon Sep 17 00:00:00 2001 From: helixhorned Date: Wed, 17 Apr 2013 20:34:39 +0000 Subject: [PATCH] OS X: Write eduke32.log to ~/Library/Logs unless -usecwd is given. git-svn-id: https://svn.eduke32.com/eduke32@3689 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index ec8326216..9078a1286 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -8729,6 +8729,17 @@ static int32_t loaddefinitions_game(const char *fn, int32_t preload) const char **g_argv; #endif +#ifdef __APPLE__ +// Early checking for "-usecwd" switch. +static void G_CheckUseCWD(int32_t argc, const char **argv) +{ + int32_t i; + for (i=0; i