fix dxgi=n in dxvk

This commit is contained in:
castro-fidel 2020-12-02 22:45:15 +03:00
parent 9c0257fcbc
commit 5faca941b8
2 changed files with 5 additions and 1 deletions

@ -135,6 +135,9 @@ class CompatData:
makedirs(self.prefix_dir + "/drive_c")
set_dir_casefold_bit(self.prefix_dir + "/drive_c")
if not os.path.exists(self.prefix_dir + "/user.reg"):
self.copy_pfx()
use_wined3d = "wined3d" in g_session.compat_config
use_dxvk_dxgi = "WINEDLLOVERRIDES" in g_session.env and "dxgi=n" in g_session.env["WINEDLLOVERRIDES"]
@ -228,7 +231,7 @@ class Session:
def __init__(self):
self.env = dict(os.environ)
self.dlloverrides = {
"dotnetfx35.exe": "b" #replace the broken installer, as does Windows
"steam.exe": "n"
}
self.compat_config = set()

@ -153,6 +153,7 @@ echo "DXVK_HUD=${DXVK_HUD}"
if [ "${var_dxvk_on}" != "off" ]; then
export PW_USE_WINED3D=0
export WINEDLLOVERRIDES="${WINEDLLOVERRIDES}:dxgi=n"
echo "Use DXVK and D9VK (DX9-DX11 to Vulkan)"
else
export PW_USE_WINED3D=1