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")