From: divverent Date: Sat, 8 Aug 2009 15:42:09 +0000 (+0000) Subject: new command line option -modname to override DP's idea of com_modname (useful to... X-Git-Tag: xonotic-v0.1.0preview~1522 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=66e2a20b4a20d03de1098a3c76186cb0ce316f21;p=xonotic%2Fdarkplaces.git new command line option -modname to override DP's idea of com_modname (useful to e.g. send another mod name to the master server) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9107 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/fs.c b/fs.c index 41f279cc..0782cf52 100644 --- a/fs.c +++ b/fs.c @@ -1247,6 +1247,9 @@ void FS_Rescan (void) Cvar_SetQuick (&scr_screenshot_name, com_modname); else Cvar_SetQuick (&scr_screenshot_name, gamescreenshotname); + + if((i = COM_CheckParm("-modname")) && i < com_argc - 1) + strlcpy(com_modname, com_argv[i+1], sizeof(com_modname)); // If "-condebug" is in the command line, remove the previous log file if (COM_CheckParm ("-condebug") != 0)