mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
Enable -usecwd for Mapster32 on Windows (same functionality as EDuke32)
git-svn-id: https://svn.eduke32.com/eduke32@4526 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ca03f7af44
commit
398d20fc5f
1 changed files with 3 additions and 6 deletions
|
@ -104,9 +104,7 @@ static int16_t g_sndnum[MAXSOUNDS]; // maps current order index to g_sounds ind
|
||||||
int32_t g_numsounds = 0;
|
int32_t g_numsounds = 0;
|
||||||
static int32_t lastupdate, mousecol, mouseadd = 1, bstatus;
|
static int32_t lastupdate, mousecol, mouseadd = 1, bstatus;
|
||||||
|
|
||||||
#if !defined(_WIN32)
|
|
||||||
static int32_t usecwd = 0;
|
static int32_t usecwd = 0;
|
||||||
#endif
|
|
||||||
|
|
||||||
char *scripthist[SCRIPTHISTSIZ];
|
char *scripthist[SCRIPTHISTSIZ];
|
||||||
int32_t scripthistend = 0;
|
int32_t scripthistend = 0;
|
||||||
|
@ -8524,9 +8522,7 @@ static void G_ShowParameterHelp(void)
|
||||||
#if defined _WIN32 || (defined RENDERTYPESDL && ((defined __APPLE__ && defined OSX_STARTUPWINDOW) || defined HAVE_GTK2))
|
#if defined _WIN32 || (defined RENDERTYPESDL && ((defined __APPLE__ && defined OSX_STARTUPWINDOW) || defined HAVE_GTK2))
|
||||||
"-setup\t\t\tDisplays the configuration dialog\n"
|
"-setup\t\t\tDisplays the configuration dialog\n"
|
||||||
#endif
|
#endif
|
||||||
#if !defined(_WIN32)
|
|
||||||
"-usecwd\t\t\tRead game data and configuration file from working directory\n"
|
"-usecwd\t\t\tRead game data and configuration file from working directory\n"
|
||||||
#endif
|
|
||||||
"\n-?, -help, --help\t\tDisplay this help message and exit"
|
"\n-?, -help, --help\t\tDisplay this help message and exit"
|
||||||
;
|
;
|
||||||
Bsprintf(tempbuf, "Mapster32 %s %s", VERSION, s_buildRev);
|
Bsprintf(tempbuf, "Mapster32 %s %s", VERSION, s_buildRev);
|
||||||
|
@ -8803,7 +8799,6 @@ static void G_CheckCommandLine(int32_t argc, const char **argv)
|
||||||
i++;
|
i++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
#if !defined(_WIN32)
|
|
||||||
if (!Bstrcasecmp(c+1,"usecwd"))
|
if (!Bstrcasecmp(c+1,"usecwd"))
|
||||||
{
|
{
|
||||||
usecwd = 1;
|
usecwd = 1;
|
||||||
|
@ -8811,7 +8806,6 @@ static void G_CheckCommandLine(int32_t argc, const char **argv)
|
||||||
i++;
|
i++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#if defined(RENDERTYPEWIN) && defined(USE_OPENGL)
|
#if defined(RENDERTYPEWIN) && defined(USE_OPENGL)
|
||||||
if (!Bstrcasecmp(c+1,"forcegl"))
|
if (!Bstrcasecmp(c+1,"forcegl"))
|
||||||
{
|
{
|
||||||
|
@ -10513,6 +10507,9 @@ int32_t ExtInit(void)
|
||||||
pathsearchmode = 0;
|
pathsearchmode = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!usecwd)
|
||||||
|
G_CleanupSearchPaths();
|
||||||
|
|
||||||
bpp = 32;
|
bpp = 32;
|
||||||
|
|
||||||
//#ifdef USE_OPENGL
|
//#ifdef USE_OPENGL
|
||||||
|
|
Loading…
Reference in a new issue