added -noconfig commandline option for benchmarking purposes
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 May 2010 17:33:00 +0000 (17:33 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 May 2010 17:33:00 +0000 (17:33 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10165 d7cf8633-e32d-0410-b094-e92efae38249

cmd.c

diff --git a/cmd.c b/cmd.c
index f8baf91..19da28e 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -464,7 +464,11 @@ static void Cmd_Exec_f (void)
 
        filename = Cmd_Argv(1);
        if (!strcmp(filename, "config.cfg"))
+       {
                filename = CONFIGFILENAME;
+               if (COM_CheckParm("-noconfig"))
+                       return; // don't execute config.cfg
+       }
 
        f = (char *)FS_LoadFile (filename, tempmempool, false, NULL);
        if (!f)