mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
send language to MS
This commit is contained in:
parent
4601c65bc6
commit
356f0ce7c0
@ -180,6 +180,8 @@ ConVar* cl_materialinfo_offset_y = nullptr;
|
|||||||
|
|
||||||
ConVar* cl_threaded_bone_setup = nullptr;
|
ConVar* cl_threaded_bone_setup = nullptr;
|
||||||
|
|
||||||
|
ConVar* cl_language = nullptr;
|
||||||
|
|
||||||
ConVar* con_drawnotify = nullptr;
|
ConVar* con_drawnotify = nullptr;
|
||||||
ConVar* con_notifylines = nullptr;
|
ConVar* con_notifylines = nullptr;
|
||||||
ConVar* con_notifytime = nullptr;
|
ConVar* con_notifytime = nullptr;
|
||||||
@ -483,6 +485,7 @@ void ConVar_InitShipped(void)
|
|||||||
cl_move_use_dt = g_pCVar->FindVar("cl_move_use_dt");
|
cl_move_use_dt = g_pCVar->FindVar("cl_move_use_dt");
|
||||||
cl_updaterate_mp = g_pCVar->FindVar("cl_updaterate_mp");
|
cl_updaterate_mp = g_pCVar->FindVar("cl_updaterate_mp");
|
||||||
cl_threaded_bone_setup = g_pCVar->FindVar("cl_threaded_bone_setup");
|
cl_threaded_bone_setup = g_pCVar->FindVar("cl_threaded_bone_setup");
|
||||||
|
cl_language = g_pCVar->FindVar("cl_language");
|
||||||
#endif // !DEDICATED
|
#endif // !DEDICATED
|
||||||
single_frame_shutdown_for_reload = g_pCVar->FindVar("single_frame_shutdown_for_reload");
|
single_frame_shutdown_for_reload = g_pCVar->FindVar("single_frame_shutdown_for_reload");
|
||||||
enable_debug_overlays = g_pCVar->FindVar("enable_debug_overlays");
|
enable_debug_overlays = g_pCVar->FindVar("enable_debug_overlays");
|
||||||
|
@ -168,6 +168,8 @@ extern ConVar* cl_materialinfo_offset_y;
|
|||||||
|
|
||||||
extern ConVar* cl_threaded_bone_setup;
|
extern ConVar* cl_threaded_bone_setup;
|
||||||
|
|
||||||
|
extern ConVar* cl_language;
|
||||||
|
|
||||||
extern ConVar* con_drawnotify;
|
extern ConVar* con_drawnotify;
|
||||||
extern ConVar* con_notifylines;
|
extern ConVar* con_notifylines;
|
||||||
extern ConVar* con_notifytime;
|
extern ConVar* con_notifytime;
|
||||||
|
@ -361,6 +361,12 @@ bool CPylon::QueryServer(const char* endpoint, const char* request,
|
|||||||
string finalUrl;
|
string finalUrl;
|
||||||
CURLFormatUrl(finalUrl, hostName, endpoint);
|
CURLFormatUrl(finalUrl, hostName, endpoint);
|
||||||
|
|
||||||
|
#ifndef DEDICATED
|
||||||
|
finalUrl += Format("?language=%s", cl_language->GetString());
|
||||||
|
#else
|
||||||
|
finalUrl += Format("?language=%s", sv_language->GetString());
|
||||||
|
#endif
|
||||||
|
|
||||||
CURLParams params;
|
CURLParams params;
|
||||||
|
|
||||||
params.writeFunction = CURLWriteStringCallback;
|
params.writeFunction = CURLWriteStringCallback;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user