Allow override of dlls with WINEDLLOVERRIDES environment variable

Proton overrides the environment variable WINEDLLOVERRIDES entirely,
this change allows to add own dll overrides.
This commit is contained in:
NoXPhasma
2018-10-16 09:44:32 -05:00
committed by Andrew Eikum
parent aaaef10ccb
commit cac3a518bd
+4 -1
View File
@@ -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