Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ValveSoftware/Proton.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZebediah Figura <zfigura@codeweavers.com>2021-06-16 07:00:22 +0300
committerAndrew Eikum <aeikum@codeweavers.com>2021-06-16 22:22:11 +0300
commit6d9b1de6c412f43bb8bd65159943ddb7c962eaa5 (patch)
tree94c8e4072497baebcfa2b0e27d19a80ad772fb01
parentbb11c5177ca02a01a3d776e27bf9bbdfbfbde397 (diff)
proton: Always check if the prefix config changed.proton-6.3-4b
In particular, make sure that we update builtin dlls for the first process that runs.
-rwxr-xr-xproton23
1 files changed, 11 insertions, 12 deletions
diff --git a/proton b/proton
index 5246f7e8..167c1d8c 100755
--- a/proton
+++ b/proton
@@ -488,20 +488,19 @@ class CompatData:
builtin_dll_copy,
))
- if old_ver == CURRENT_PREFIX_VERSION:
- # check whether any prefix config has changed
- try:
- with open(self.config_info_file, "r") as f:
- old_prefix_info = f.read()
- except IOError:
- old_prefix_info = ""
+ # check whether any prefix config has changed
+ try:
+ with open(self.config_info_file, "r") as f:
+ old_prefix_info = f.read()
+ except IOError:
+ old_prefix_info = ""
- if old_prefix_info != prefix_info:
- # update builtin dll symlinks or copies
- self.update_builtin_libs(builtin_dll_copy)
+ if old_ver != CURRENT_PREFIX_VERSION or old_prefix_info != prefix_info:
+ # update builtin dll symlinks or copies
+ self.update_builtin_libs(builtin_dll_copy)
- with open(self.config_info_file, "w") as f:
- f.write(prefix_info)
+ with open(self.config_info_file, "w") as f:
+ f.write(prefix_info)
with open(self.version_file, "w") as f:
f.write(CURRENT_PREFIX_VERSION + "\n")