Remove RTS names from standalone builds

git-svn-id: https://svn.eduke32.com/eduke32@7897 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2019-08-07 20:06:22 +00:00 committed by Christoph Oelckers
parent dcdabd30d3
commit 640b1c4461
2 changed files with 6 additions and 3 deletions

View file

@ -94,7 +94,9 @@ int32_t g_BenchmarkMode = BENCHMARKMODE_OFF;
int32_t g_Debug = 0; int32_t g_Debug = 0;
const char *defaultrtsfilename[GAMECOUNT] = { "DUKE.RTS", "NAM.RTS", "NAPALM.RTS", "WW2GI.RTS" }; #ifndef EDUKE32_STANDALONE
static const char *defaultrtsfilename[GAMECOUNT] = { "DUKE.RTS", "NAM.RTS", "NAPALM.RTS", "WW2GI.RTS" };
#endif
int32_t g_Shareware = 0; int32_t g_Shareware = 0;
@ -131,6 +133,7 @@ void M32RunScript(const char *s) { UNREFERENCED_PARAMETER(s); }; // needed for
const char *G_DefaultRtsFile(void) const char *G_DefaultRtsFile(void)
{ {
#ifndef EDUKE32_STANDALONE
if (DUKE) if (DUKE)
return defaultrtsfilename[GAME_DUKE]; return defaultrtsfilename[GAME_DUKE];
else if (WW2GI) else if (WW2GI)
@ -149,8 +152,9 @@ const char *G_DefaultRtsFile(void)
else else
return defaultrtsfilename[GAME_NAM]; return defaultrtsfilename[GAME_NAM];
} }
#endif
return defaultrtsfilename[0]; return "";
} }
enum gametokens enum gametokens

View file

@ -311,7 +311,6 @@ static inline int Menu_HaveUserMap(void)
return (boardfilename[0] != 0 && ud.m_level_number == 7 && ud.m_volume_number == 0); return (boardfilename[0] != 0 && ud.m_level_number == 7 && ud.m_volume_number == 0);
} }
extern const char *defaultrtsfilename[GAMECOUNT];
extern const char *G_DefaultRtsFile(void); extern const char *G_DefaultRtsFile(void);
#ifdef LEGACY_ROR #ifdef LEGACY_ROR