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:
Connor McAdams
2025-09-09 09:46:09 -04:00
committed by Arkadiusz Hiler
parent 5af43e852f
commit 36a80f46a7

2
proton
View File

@@ -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":