Merge pull request #11 from q4a/add_lang

add Command line param "language"
This commit is contained in:
nillerusr 2021-05-30 19:29:28 +03:00 committed by GitHub
commit ddb086ddd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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" );
}
}
}