From: havoc Date: Sun, 2 May 2010 17:33:00 +0000 (+0000) Subject: added -noconfig commandline option for benchmarking purposes X-Git-Tag: xonotic-v0.1.0preview~230^2~312 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dd749c0663a6e55f2513c4f31fc72c8eaead41d3;p=xonotic%2Fdarkplaces.git added -noconfig commandline option for benchmarking purposes git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10165 d7cf8633-e32d-0410-b094-e92efae38249 --- 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)