Compare commits

...

1 Commits

Author SHA1 Message Date
Zebediah Figura
6d9b1de6c4 proton: Always check if the prefix config changed.
In particular, make sure that we update builtin dlls for the first process that runs.
2021-06-16 14:22:11 -05:00

23
proton
View File

@ -488,20 +488,19 @@ class CompatData:
builtin_dll_copy, builtin_dll_copy,
)) ))
if old_ver == CURRENT_PREFIX_VERSION: # check whether any prefix config has changed
# check whether any prefix config has changed try:
try: with open(self.config_info_file, "r") as f:
with open(self.config_info_file, "r") as f: old_prefix_info = f.read()
old_prefix_info = f.read() except IOError:
except IOError: old_prefix_info = ""
old_prefix_info = ""
if old_prefix_info != prefix_info: if old_ver != CURRENT_PREFIX_VERSION or old_prefix_info != prefix_info:
# update builtin dll symlinks or copies # update builtin dll symlinks or copies
self.update_builtin_libs(builtin_dll_copy) self.update_builtin_libs(builtin_dll_copy)
with open(self.config_info_file, "w") as f: with open(self.config_info_file, "w") as f:
f.write(prefix_info) f.write(prefix_info)
with open(self.version_file, "w") as f: with open(self.version_file, "w") as f:
f.write(CURRENT_PREFIX_VERSION + "\n") f.write(CURRENT_PREFIX_VERSION + "\n")