mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-27 22:18:21 +03:00
proton: Add nod3d11 config option
This commit is contained in:
parent
3dcda97a25
commit
430d91c888
20
proton
20
proton
@ -59,6 +59,9 @@ else:
|
|||||||
if "PROTON_USE_DXVK" in os.environ:
|
if "PROTON_USE_DXVK" in os.environ:
|
||||||
config_opts.append("dxvk")
|
config_opts.append("dxvk")
|
||||||
|
|
||||||
|
if "PROTON_NO_D3D11" in os.environ:
|
||||||
|
config_opts.append("nod3d11")
|
||||||
|
|
||||||
basedir = os.path.dirname(sys.argv[0])
|
basedir = os.path.dirname(sys.argv[0])
|
||||||
bindir = basedir + "/dist/bin/"
|
bindir = basedir + "/dist/bin/"
|
||||||
libdir = basedir + "/dist/lib"
|
libdir = basedir + "/dist/lib"
|
||||||
@ -79,6 +82,7 @@ with dist_lock:
|
|||||||
shutil.copy(basedir + "/version", basedir + "/dist/")
|
shutil.copy(basedir + "/version", basedir + "/dist/")
|
||||||
|
|
||||||
env = dict(os.environ)
|
env = dict(os.environ)
|
||||||
|
dlloverrides = {}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
env["WINEDEBUG"] = WITH_WINEDEBUG
|
env["WINEDEBUG"] = WITH_WINEDEBUG
|
||||||
@ -242,13 +246,27 @@ with prefix_lock:
|
|||||||
prefix + "drive_c/windows/system32")
|
prefix + "drive_c/windows/system32")
|
||||||
make_dxvk_links(basedir + "/dist/lib/wine/dxvk/",
|
make_dxvk_links(basedir + "/dist/lib/wine/dxvk/",
|
||||||
prefix + "drive_c/windows/syswow64")
|
prefix + "drive_c/windows/syswow64")
|
||||||
env["WINEDLLOVERRIDES"] = "dxgi,d3d11=n"
|
dlloverrides["dxgi"] = "n"
|
||||||
|
dlloverrides["d3d11"] = "n"
|
||||||
else:
|
else:
|
||||||
make_dxvk_links(basedir + "/dist/lib64/wine/",
|
make_dxvk_links(basedir + "/dist/lib64/wine/",
|
||||||
prefix + "drive_c/windows/system32")
|
prefix + "drive_c/windows/system32")
|
||||||
make_dxvk_links(basedir + "/dist/lib/wine/",
|
make_dxvk_links(basedir + "/dist/lib/wine/",
|
||||||
prefix + "drive_c/windows/syswow64")
|
prefix + "drive_c/windows/syswow64")
|
||||||
|
|
||||||
|
if "nod3d11" in config_opts:
|
||||||
|
dlloverrides["d3d11"] = ""
|
||||||
|
if "dxgi" in dlloverrides:
|
||||||
|
del dlloverrides["dxgi"]
|
||||||
|
|
||||||
|
s = ""
|
||||||
|
for dll, setting in dlloverrides.iteritems():
|
||||||
|
if len(s) > 0:
|
||||||
|
s = s + ";" + dll + "=" + setting
|
||||||
|
else:
|
||||||
|
s = dll + "=" + setting
|
||||||
|
env["WINEDLLOVERRIDES"] = s
|
||||||
|
|
||||||
ARCH_UNKNOWN=0
|
ARCH_UNKNOWN=0
|
||||||
ARCH_I386=1
|
ARCH_I386=1
|
||||||
ARCH_X86_64=2
|
ARCH_X86_64=2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user