From 51ba28fae1bb2faf352c6f2fc4ec58c0b487e8c1 Mon Sep 17 00:00:00 2001 From: q4a Date: Sun, 30 May 2021 18:04:37 +0300 Subject: [PATCH] add Command line param "language" --- engine/cl_main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/engine/cl_main.cpp b/engine/cl_main.cpp index 8c99ee52..ef098423 100644 --- a/engine/cl_main.cpp +++ b/engine/cl_main.cpp @@ -2743,7 +2743,14 @@ void CL_InitLanguageCvar() } else { - cl_language.SetValue( "english" ); + if ( CommandLine()->CheckParm( "-language" ) ) + { + cl_language.SetValue( CommandLine()->ParmValue( "-language", "english") ); + } + else + { + cl_language.SetValue( "english" ); + } } }