X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=fs.c;h=0782cf52bdb26ca8bba15ce4ebc3da9ace1f4f5c;hp=41f279cc8ab725d4ae56740e95deb510748a8802;hb=66e2a20b4a20d03de1098a3c76186cb0ce316f21;hpb=c49e16b147101637a45a20257d3eebe4ee54cbc4 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)