From cac3a518bd7ad913d0494dad6fccf1951e902af8 Mon Sep 17 00:00:00 2001 From: NoXPhasma Date: Sun, 7 Oct 2018 15:16:54 +0200 Subject: [PATCH] Allow override of dlls with WINEDLLOVERRIDES environment variable Proton overrides the environment variable WINEDLLOVERRIDES entirely, this change allows to add own dll overrides. --- proton | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proton b/proton index 775862e7..5002792a 100755 --- a/proton +++ b/proton @@ -373,7 +373,10 @@ for dll in dlloverrides: s = s + ";" + dll + "=" + setting else: s = dll + "=" + setting -env["WINEDLLOVERRIDES"] = s +if "WINEDLLOVERRIDES" in os.environ: + env["WINEDLLOVERRIDES"] = os.environ["WINEDLLOVERRIDES"] + ";" + s +else: + env["WINEDLLOVERRIDES"] = s ARCH_UNKNOWN=0 ARCH_I386=1