mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
Remove the structure fields in grpscan.c that blocked my code for allowing NAM, NAPALM, and WWII GI to fall back to GAME.CON.
git-svn-id: https://svn.eduke32.com/eduke32@4789 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
9a7bf9e72e
commit
47d3f07ccf
3 changed files with 8 additions and 13 deletions
|
@ -31,10 +31,10 @@ const char *g_gameNamePtr = NULL;
|
||||||
|
|
||||||
// grp/con handling
|
// grp/con handling
|
||||||
|
|
||||||
const char *defaultgamegrp[GAMECOUNT] = { "DUKE3D.GRP", "NAM.GRP", "NAPALM.GRP", "WW2GI.GRP" };
|
static const char *defaultgamegrp[GAMECOUNT] = { "DUKE3D.GRP", "NAM.GRP", "NAPALM.GRP", "WW2GI.GRP" };
|
||||||
const char *defaultdeffilename[GAMECOUNT] = { "duke3d.def", "nam.def", "napalm.def", "ww2gi.def" };
|
static const char *defaultdeffilename[GAMECOUNT] = { "duke3d.def", "nam.def", "napalm.def", "ww2gi.def" };
|
||||||
const char *defaultconfilename = "GAME.CON";
|
static const char *defaultconfilename = "GAME.CON";
|
||||||
const char *defaultgameconfilename[GAMECOUNT] = { "EDUKE.CON", "NAM.CON", "NAPALM.CON", "WW2GI.CON" };
|
static const char *defaultgameconfilename[GAMECOUNT] = { "EDUKE.CON", "NAM.CON", "NAPALM.CON", "WW2GI.CON" };
|
||||||
|
|
||||||
// g_grpNamePtr can ONLY point to a malloc'd block (length BMAX_PATH)
|
// g_grpNamePtr can ONLY point to a malloc'd block (length BMAX_PATH)
|
||||||
char *g_grpNamePtr = NULL;
|
char *g_grpNamePtr = NULL;
|
||||||
|
|
|
@ -60,11 +60,6 @@ typedef enum basepal_ {
|
||||||
|
|
||||||
extern const char *g_gameNamePtr;
|
extern const char *g_gameNamePtr;
|
||||||
|
|
||||||
extern const char *defaultgamegrp[GAMECOUNT];
|
|
||||||
extern const char *defaultdeffilename[GAMECOUNT];
|
|
||||||
extern const char *defaultconfilename;
|
|
||||||
extern const char *defaultgameconfilename[GAMECOUNT];
|
|
||||||
|
|
||||||
extern char *g_grpNamePtr;
|
extern char *g_grpNamePtr;
|
||||||
extern char *g_scriptNamePtr;
|
extern char *g_scriptNamePtr;
|
||||||
|
|
||||||
|
|
|
@ -47,10 +47,10 @@ struct grpfile internalgrpfiles[NUMGRPFILES] =
|
||||||
{ "Duke Nukem 3D Mac Demo", DUKEMD_CRC, 10444391, GAMEFLAG_DUKE|GAMEFLAG_SHAREWARE, 0, NULL, NULL, NULL },
|
{ "Duke Nukem 3D Mac Demo", DUKEMD_CRC, 10444391, GAMEFLAG_DUKE|GAMEFLAG_SHAREWARE, 0, NULL, NULL, NULL },
|
||||||
{ "Duke it out in D.C.", DUKEDC_CRC, 8410183 , GAMEFLAG_DUKE|GAMEFLAG_ADDON, DUKE15_CRC, NULL, NULL, NULL },
|
{ "Duke it out in D.C.", DUKEDC_CRC, 8410183 , GAMEFLAG_DUKE|GAMEFLAG_ADDON, DUKE15_CRC, NULL, NULL, NULL },
|
||||||
{ "Duke Caribbean: Life's a Beach", DUKECB_CRC, 22213819, GAMEFLAG_DUKE|GAMEFLAG_ADDON, DUKE15_CRC, NULL, NULL, NULL },
|
{ "Duke Caribbean: Life's a Beach", DUKECB_CRC, 22213819, GAMEFLAG_DUKE|GAMEFLAG_ADDON, DUKE15_CRC, NULL, NULL, NULL },
|
||||||
{ "Duke: Nuclear Winter", DUKENW_CRC, 16169365, GAMEFLAG_DUKE|GAMEFLAG_ADDON, DUKE15_CRC, "nwinter.con", NULL, NULL },
|
{ "Duke: Nuclear Winter", DUKENW_CRC, 16169365, GAMEFLAG_DUKE|GAMEFLAG_ADDON, DUKE15_CRC, "NWINTER.CON", NULL, NULL },
|
||||||
{ "NAM", NAM_CRC, 43448927, GAMEFLAG_NAM, 0, "nam.con", "nam.def", NULL },
|
{ "NAM", NAM_CRC, 43448927, GAMEFLAG_NAM, 0, NULL, NULL, NULL },
|
||||||
{ "NAPALM", NAPALM_CRC, 44365728, GAMEFLAG_NAM|GAMEFLAG_NAPALM, 0, "napalm.con", "nam.def", NULL },
|
{ "NAPALM", NAPALM_CRC, 44365728, GAMEFLAG_NAM|GAMEFLAG_NAPALM, 0, NULL, NULL, NULL },
|
||||||
{ "WWII GI", WW2GI_CRC, 77939508, GAMEFLAG_WW2GI|GAMEFLAG_NAM, 0, "ww2gi.con", "ww2gi.def", NULL },
|
{ "WWII GI", WW2GI_CRC, 77939508, GAMEFLAG_WW2GI|GAMEFLAG_NAM, 0, NULL, NULL, NULL },
|
||||||
};
|
};
|
||||||
struct grpfile *foundgrps = NULL;
|
struct grpfile *foundgrps = NULL;
|
||||||
struct grpfile *listgrps = NULL;
|
struct grpfile *listgrps = NULL;
|
||||||
|
|
Loading…
Reference in a new issue