]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
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 f8baf9125d79974cb0062e00094f9a36ef889151..19da28e1b21f1b161f6771b842b2ebc54c1a3897 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)