From 66e2a20b4a20d03de1098a3c76186cb0ce316f21 Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 8 Aug 2009 15:42:09 +0000 Subject: [PATCH] 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 --- fs.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.39.2