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: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@47 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2010-02-18 11:45:18 +00:00
parent 0dce9ae100
commit 44ad29724b
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 fitzmode;
void COM_InitFilesystem (void);
// 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_CheckRegistered ();
if (COM_CheckParm("-fitz"))
fitzmode = true;
#ifdef _DEBUG
Cmd_AddCommand ("test", Test_f); //johnfitz
#endif

View file

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