]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - fs.c
new command line option -modname to override DP's idea of com_modname (useful to...
[xonotic/darkplaces.git] / 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);
                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)
 
        // If "-condebug" is in the command line, remove the previous log file
        if (COM_CheckParm ("-condebug") != 0)