From 3c376aa342994971e0e3f578476e8085d346cdf1 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 8 Oct 2013 20:18:35 -0500 Subject: [PATCH] Move C_ExecCmdLineParams() call slightly later in the startup process. - Fixed: You could not set any CVARINFO-defined cvars from the command line because command line console commands were executed before wads were even loaded. Off the top of my head, I can't think of anything that would\ break by having them get executed after wads are loaded. --- src/d_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index ae1c5144d..507938519 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -2281,8 +2281,6 @@ void D_DoomMain (void) execFiles = Args->GatherFiles ("-exec"); D_MultiExec (execFiles, true); - C_ExecCmdLineParams (); // [RH] do all +set commands on the command line - CopyFiles(allwads, pwads); // Since this function will never leave we must delete this array here manually. @@ -2298,6 +2296,8 @@ void D_DoomMain (void) // Now that wads are loaded, define mod-specific cvars. ParseCVarInfo(); + C_ExecCmdLineParams (); // [RH] do all +set commands on the command line + // [RH] Initialize localizable strings. GStrings.LoadStrings (false);