mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-15 16:18:20 +03:00
parent
46c2f720d2
commit
b86aa755d9
@ -306,18 +306,13 @@ done:
|
|||||||
|
|
||||||
static int load_steamclient(void)
|
static int load_steamclient(void)
|
||||||
{
|
{
|
||||||
char steam_app_id[4096], ignore_child_processes[4096];
|
|
||||||
struct steamclient_init_params params = {.g_tmppath = temp_path_buffer};
|
struct steamclient_init_params params = {.g_tmppath = temp_path_buffer};
|
||||||
|
|
||||||
if (!GetEnvironmentVariableA("SteamAppId", steam_app_id, ARRAY_SIZE(steam_app_id)))
|
if (!(params.steam_app_id = getenv("SteamAppId")))
|
||||||
params.steam_app_id_unset = GetLastError() == ERROR_ENVVAR_NOT_FOUND;
|
params.steam_app_id_unset = TRUE;
|
||||||
else
|
|
||||||
params.steam_app_id = steam_app_id;
|
|
||||||
|
|
||||||
if (!GetEnvironmentVariableA("IgnoreChildProcesses", ignore_child_processes, ARRAY_SIZE(ignore_child_processes)))
|
if (!(params.ignore_child_processes = getenv("IgnoreChildProcesses")))
|
||||||
params.ignore_child_processes_unset = GetLastError() == ERROR_ENVVAR_NOT_FOUND;
|
params.ignore_child_processes_unset = TRUE;
|
||||||
else
|
|
||||||
params.ignore_child_processes = ignore_child_processes;
|
|
||||||
|
|
||||||
if (STEAMCLIENT_CALL( steamclient_init, ¶ms )) return 0;
|
if (STEAMCLIENT_CALL( steamclient_init, ¶ms )) return 0;
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user