From ade03636545af01b9b70f2a6a0bc498c742f1652 Mon Sep 17 00:00:00 2001 From: Supreeeme Date: Sun, 19 Jun 2022 10:11:16 -0400 Subject: [PATCH] steam_helper: Respect VR_OVERRIDE envvar Link: https://github.com/ValveSoftware/Proton/pull/5922 --- steam_helper/steam.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/steam_helper/steam.cpp b/steam_helper/steam.cpp index 79fa95d2..ebf8c49d 100644 --- a/steam_helper/steam.cpp +++ b/steam_helper/steam.cpp @@ -412,7 +412,12 @@ static bool convert_linux_vrpaths(void) } /* 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()); }