common.c, common.h: added check for '-fitz' command line switch which, if true,

makes quakespasm to run in fitzquake mode and disable custom quakespasm hacks.


git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@47 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2010-02-18 11:45:18 +00:00
parent a44e7d568f
commit 5c82cc37e1
2 changed files with 9 additions and 0 deletions

View File

@ -43,6 +43,8 @@ int static_registered = 1; // only for startup check, then set
qboolean msg_suppress_1 = 0; qboolean msg_suppress_1 = 0;
qboolean fitzmode;
void COM_InitFilesystem (void); void COM_InitFilesystem (void);
// if a packfile directory differs from this, it is assumed to be hacked // if a packfile directory differs from this, it is assumed to be hacked
@ -1232,6 +1234,9 @@ void COM_Init (char *basedir)
COM_InitFilesystem (); COM_InitFilesystem ();
COM_CheckRegistered (); COM_CheckRegistered ();
if (COM_CheckParm("-fitz"))
fitzmode = true;
#ifdef _DEBUG #ifdef _DEBUG
Cmd_AddCommand ("test", Test_f); //johnfitz Cmd_AddCommand ("test", Test_f); //johnfitz
#endif #endif

View File

@ -185,3 +185,7 @@ void COM_LoadCacheFile (char *path, struct cache_user_s *cu);
extern struct cvar_s registered; extern struct cvar_s registered;
extern qboolean standard_quake, rogue, hipnotic; extern qboolean standard_quake, rogue, hipnotic;
extern qboolean fitzmode;
// if true, runs in fitzquake mode and disabling custom quakespasm hacks.