2
0
mirror of https://github.com/ValveSoftware/Proton synced 2025-08-31 22:55:18 +00:00

proton: Use WINEDLLPATH for vkd3d DLLs instead of copying them.

This commit is contained in:
Rémi Bernon
2025-01-13 00:31:39 +01:00
committed by Arkadiusz Hiler
parent b201603f0d
commit d0bbf643d9
2 changed files with 14 additions and 16 deletions

View File

@@ -119,14 +119,13 @@ def fixup_drive_links(default_pfx_dir):
def make_default_pfx(default_pfx_dir, dist_dir):
local_env = dict(os.environ)
libdir = dist_dir + '/lib/'
ld_path = dist_dir + "/lib/x86_64-linux-gnu:" + dist_dir + "/lib/i386-linux-gnu"
dll_path = dist_dir + "/lib/vkd3d/x86_64-windows:" + dist_dir + "/lib/vkd3d/i386-windows"
ld_path = ':'.join([libdir + "x86_64-linux-gnu", libdir + "i386-linux-gnu"])
local_env["LD_LIBRARY_PATH"] = ld_path
local_env["WINEPREFIX"] = default_pfx_dir
local_env["WINEDEBUG"] = "-all"
local_env["WINEDLLPATH"] = dll_path
local_env["WINEDLLPATH"] = libdir + "vkd3d"
runtime_args = []
subprocess.run(runtime_args + ["/bin/bash", "-c",