Browse Source

Merge pull request #11 from q4a/add_lang

add Command line param "language"
pull/19/head
nillerusr 4 years ago committed by GitHub
parent
commit
ddb086ddd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      engine/cl_main.cpp

7
engine/cl_main.cpp

@ -2742,9 +2742,16 @@ void CL_InitLanguageCvar() @@ -2742,9 +2742,16 @@ void CL_InitLanguageCvar()
cl_language.SetValue( Steam3Client().SteamApps()->GetCurrentGameLanguage() );
}
else
{
if ( CommandLine()->CheckParm( "-language" ) )
{
cl_language.SetValue( CommandLine()->ParmValue( "-language", "english") );
}
else
{
cl_language.SetValue( "english" );
}
}
}
void CL_ChangeCloudSettingsCvar( IConVar *var, const char *pOldValue, float flOldValue );

Loading…
Cancel
Save