diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index 799a31ff2..8f1bba9ae 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -85,12 +85,12 @@ extern int32_t G_GetVersionFromWebsite(char *buffer); # define UPDATEINTERVAL 604800 // 1w # include "winbits.h" #else -static int32_t usecwd = 0; # ifndef GEKKO # include # endif #endif /* _WIN32 */ +static int32_t usecwd = 0; int32_t g_quitDeadline = 0; #ifdef LUNATIC @@ -9027,9 +9027,7 @@ static void G_ShowParameterHelp(void) "-setup/nosetup\tEnables/disables startup window\n" #endif "-t#\t\tSet respawn mode: 1 = Monsters, 2 = Items, 3 = Inventory, x = All\n" -#if !defined(_WIN32) "-usecwd\t\tRead game data and configuration file from working directory\n" -#endif "-u#########\tUser's favorite weapon order (default: 3425689071)\n" "-v#\t\tWarp to volume #, see -l\n" "-ww2gi\t\tRun in WWII GI compatibility mode\n" @@ -9519,16 +9517,18 @@ const char **g_argv; const char **g_elModules; #endif -#ifdef __APPLE__ // Early checking for "-usecwd" switch. -static void G_CheckUseCWD(int32_t argc, const char **argv) +static int32_t G_CheckCmdSwitch(int32_t argc, const char **argv, const char *str) { int32_t i; for (i=0; i i+1) @@ -11060,36 +11058,25 @@ int32_t app_main(int32_t argc, const char **argv) { int32_t i = 0, j; char cwd[BMAX_PATH]; -// extern char datetimestring[]; - ENetCallbacks callbacks = { NULL, NULL, NULL }; G_ExtPreInit(); -#ifdef _WIN32 - if (argc > 1) - { - for (; i