From 6fc7e9580c968111e3ab1cf12154813fff9d6da8 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Tue, 22 Oct 2019 09:42:06 -0500 Subject: [PATCH] proton: Use Wine's DXGI by default Required for vkd3d support. You can still use DXVK's DXGI with WINEDLLOVERRIDES="dxgi=n". --- proton | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/proton b/proton index e2e16054..4374aee9 100755 --- a/proton +++ b/proton @@ -414,15 +414,21 @@ class CompatData: if "wined3d" in g_session.compat_config: dxvkfiles = [] - wined3dfiles = ["d3d11", "d3d10", "d3d10core", "d3d10_1", "dxgi", "d3d9"] + wined3dfiles = ["d3d11", "d3d10", "d3d10core", "d3d10_1", "d3d9"] else: - dxvkfiles = ["d3d11", "d3d10", "d3d10core", "d3d10_1", "dxgi"] + dxvkfiles = ["d3d11", "d3d10", "d3d10core", "d3d10_1"] wined3dfiles = [] if "d9vk" in g_session.compat_config: dxvkfiles.append("d3d9") else: wined3dfiles.append("d3d9") + #if the user asked for dxvk's dxgi (dxgi=n), then copy it into place + if "WINEDLLOVERRIDES" in os.environ and "dxgi=n" in os.environ["WINEDLLOVERRIDES"]: + dxvkfiles.append("dxgi") + else: + wined3dfiles.append("dxgi") + for f in wined3dfiles: try_copy(g_proton.default_pfx_dir + "drive_c/windows/system32/" + f + ".dll", self.prefix_dir + "drive_c/windows/system32/" + f + ".dll")