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

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