diff options
author | Zebediah Figura <zfigura@codeweavers.com> | 2021-06-16 07:00:22 +0300 |
---|---|---|
committer | Andrew Eikum <aeikum@codeweavers.com> | 2021-06-16 22:39:13 +0300 |
commit | 80cba82d25677411a5f3c366e8a1497baf172dcc (patch) | |
tree | 06329f86ca5168e8e500fa97c9d921d5385ac836 | |
parent | 7c91f57ec93b1ebf07799651b993e01b88ce30b8 (diff) |
proton: Always check if the prefix config changed.proton-5.13-6b
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
@@ -477,20 +477,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") |