Browse Source

add Command line param "language"

pull/11/head
q4a 4 years ago
parent
commit
51ba28fae1
  1. 7
      engine/cl_main.cpp

7
engine/cl_main.cpp

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