steam_helper: Respect VR_OVERRIDE envvar

Link: https://github.com/ValveSoftware/Proton/pull/5922
This commit is contained in:
Supreeeme 2022-06-19 10:11:16 -04:00 committed by Arkadiusz Hiler
parent d141d538bc
commit ade0363654

View File

@ -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());
} }