From dd749c0663a6e55f2513c4f31fc72c8eaead41d3 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 2 May 2010 17:33:00 +0000 Subject: [PATCH] added -noconfig commandline option for benchmarking purposes git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10165 d7cf8633-e32d-0410-b094-e92efae38249 --- cmd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd.c b/cmd.c index f8baf912..19da28e1 100644 --- 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) -- 2.39.2