mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 23:25:50 +03:00
steam_helper: Respect VR_OVERRIDE envvar
Link: https://github.com/ValveSoftware/Proton/pull/5922
This commit is contained in:
parent
d141d538bc
commit
ade0363654
@ -412,7 +412,12 @@ static bool convert_linux_vrpaths(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* pass original runtime path into Wine */
|
/* pass original runtime path into Wine */
|
||||||
if(root.isMember("runtime") && root["runtime"].isArray() && root["runtime"].size() > 0)
|
const char *vr_override = getenv("VR_OVERRIDE");
|
||||||
|
if(vr_override)
|
||||||
|
{
|
||||||
|
set_env_from_unix(L"PROTON_VR_RUNTIME", vr_override);
|
||||||
|
}
|
||||||
|
else if(root.isMember("runtime") && root["runtime"].isArray() && root["runtime"].size() > 0)
|
||||||
{
|
{
|
||||||
set_env_from_unix(L"PROTON_VR_RUNTIME", root["runtime"][0].asString());
|
set_env_from_unix(L"PROTON_VR_RUNTIME", root["runtime"][0].asString());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user