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-07 15:16:54 +02:00 committed by Andrew Eikum
parent aaaef10ccb
commit cac3a518bd

5
proton
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