diff options
author | Zebediah Figura <zfigura@codeweavers.com> | 2021-06-16 07:00:22 +0300 |
---|---|---|
committer | Andrew Eikum <aeikum@codeweavers.com> | 2021-06-16 16:23:04 +0300 |
commit | 63bcce34d64aa6802bdcf4940d170820692be76d (patch) | |
tree | 1a31d7adc09adc4d27f94c86ddace6946b71834f | |
parent | cd3384f2afd529e758f10f3b03d9457faf01a47c (diff) |
proton: Always check if the prefix config changed.experimental-6.3-20210616
In particular, make sure that we update builtin dlls for the first process that runs.
-rwxr-xr-x | proton | 23 |
1 files changed, 11 insertions, 12 deletions
@@ -593,20 +593,19 @@ class CompatData: str(use_nvapi), )) - 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_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") |