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,10 +2742,17 @@ void CL_InitLanguageCvar() @@ -2742,10 +2742,17 @@ 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 );
ConVar cl_cloud_settings( "cl_cloud_settings", "1", FCVAR_HIDDEN, "Cloud enabled from (from HKCU\\Software\\Valve\\Steam\\Apps\\appid\\Cloud)", CL_ChangeCloudSettingsCvar );

Loading…
Cancel
Save