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,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 );

Loading…
Cancel
Save