mirror of
https://github.com/ValveSoftware/Proton.git
synced 2026-01-10 00:48:16 -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"
|
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):
|
if file_exists(path, follow_symlinks=False) and os.path.isfile(path):
|
||||||
os.remove(path)
|
os.remove(path)
|
||||||
|
if file_exists(self.creation_sync_guard, follow_symlinks=False):
|
||||||
|
os.remove(self.creation_sync_guard)
|
||||||
return
|
return
|
||||||
|
|
||||||
if old_proton_ver == "3.7" and old_prefix_ver == "1":
|
if old_proton_ver == "3.7" and old_prefix_ver == "1":
|
||||||
|
|||||||
Reference in New Issue
Block a user