Skip to content

Commit 376d66c

Browse files
committed
Open the console on main menu when one of the parameters is present
1 parent 40b1131 commit 376d66c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎Source.Engine/VGuiBaseUIInterface.cs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,12 @@ public void Init() {
727727

728728
ActivateGameUI();
729729

730+
if (staticGameConsole != null &&
731+
!CommandLine.CheckParm("-forcestartupmenu") &&
732+
!CommandLine.CheckParm("-hideconsole") &&
733+
(CommandLine.FindParm("-toconsole") != 0 || CommandLine.FindParm("-console") != 0 || CommandLine.FindParm("-rpt") != 0 || CommandLine.FindParm("-allowdebug") != 0))
734+
staticGameConsole.Activate();
735+
730736
NoShaderAPI = CommandLine.CheckParm("-noshaderapi");
731737
}
732738

0 commit comments

Comments
 (0)