mirror of
https://github.com/ValveSoftware/Proton.git
synced 2026-01-07 01:33:55 -05:00
proton: Delete the creation sync guard file when removing newer prefixes.
If this file persists after removing a newer prefix, creation of the current prefix will fail. CW-Bug-Id: #24524 CW-Bug-Id: #19720
This commit is contained in:
committed by
Arkadiusz Hiler
parent
5af43e852f
commit
36a80f46a7
2
proton
2
proton
@@ -653,6 +653,8 @@ class CompatData:
|
||||
path = self.prefix_dir + "/drive_c/Program Files (x86)/Ubisoft/Ubisoft Game Launcher/version.txt"
|
||||
if file_exists(path, follow_symlinks=False) and os.path.isfile(path):
|
||||
os.remove(path)
|
||||
if file_exists(self.creation_sync_guard, follow_symlinks=False):
|
||||
os.remove(self.creation_sync_guard)
|
||||
return
|
||||
|
||||
if old_proton_ver == "3.7" and old_prefix_ver == "1":
|
||||
|
||||
Reference in New Issue
Block a user