]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
new command line option -modname to override DP's idea of com_modname (useful to...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 8 Aug 2009 15:42:09 +0000 (15:42 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 8 Aug 2009 15:42:09 +0000 (15:42 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9107 d7cf8633-e32d-0410-b094-e92efae38249

fs.c

diff --git a/fs.c b/fs.c
index 41f279cc8ab725d4ae56740e95deb510748a8802..0782cf52bdb26ca8bba15ce4ebc3da9ace1f4f5c 100644 (file)
--- 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)