From 82e2407adb821ba2cc67db73d6fe1b53f6c1b952 Mon Sep 17 00:00:00 2001 From: Paul Gofman Date: Mon, 18 Nov 2024 16:13:51 -0600 Subject: [PATCH] proton: Link ICU 6.8 32 bit dlls into the prefix. CW-Bug-Id: #24402 --- proton | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/proton b/proton index 3fad2925..f473a867 100755 --- a/proton +++ b/proton @@ -1037,9 +1037,15 @@ class CompatData: g_session.dlloverrides[f] = "n" for f in icufiles: - self.create_symlink(self.prefix_dir + "drive_c/windows/system32/" + f + ".dll", - g_proton.lib64_dir + "icu/" + f + ".dll") - tracked_files.write("drive_c/windows/system32/" + f + '.dll\n') + dst = "drive_c/windows/system32/" + f + ".dll" + if not file_exists(self.prefix_dir + dst, follow_symlinks=False): + tracked_files.write(dst + '\n') + self.create_symlink(self.prefix_dir + dst, g_proton.lib64_dir + "icu/" + f + ".dll") + + dst = "drive_c/windows/syswow64/" + f + ".dll" + if not file_exists(self.prefix_dir + dst, follow_symlinks=False): + tracked_files.write(dst + '\n') + self.create_symlink(self.prefix_dir + dst, g_proton.lib_dir + "icu/" + f + ".dll") # If the user requested the NVAPI be available, copy it into place. # If they didn't, clean up any stray nvapi DLLs.