mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-05-25 19:12:12 +02:00
parent
0958417578
commit
89c9625118
14
proton
14
proton
@ -920,19 +920,7 @@ class CompatData:
|
|||||||
|
|
||||||
self.upgrade_pfx(old_ver)
|
self.upgrade_pfx(old_ver)
|
||||||
|
|
||||||
# not fully-created prefix, copy it for future investigation
|
if not file_exists(self.creation_sync_guard, follow_symlinks=False):
|
||||||
if file_exists(self.prefix_dir, follow_symlinks=True) and not file_exists(self.creation_sync_guard, follow_symlinks=True):
|
|
||||||
shutil.move(self.prefix_dir, self.path(f"corrupted_pfx-{time.time()}.bak"))
|
|
||||||
|
|
||||||
# remove files created for the corrupted prefix, we usually append to them
|
|
||||||
if file_exists(self.version_file, follow_symlinks=False):
|
|
||||||
os.remove(self.version_file)
|
|
||||||
if file_exists(self.config_info_file, follow_symlinks=False):
|
|
||||||
os.remove(self.config_info_file)
|
|
||||||
if file_exists(self.tracked_files_file, follow_symlinks=False):
|
|
||||||
os.remove(self.tracked_files_file)
|
|
||||||
|
|
||||||
if not file_exists(self.prefix_dir, follow_symlinks=True):
|
|
||||||
makedirs(self.prefix_dir + "/drive_c")
|
makedirs(self.prefix_dir + "/drive_c")
|
||||||
set_dir_casefold_bit(self.prefix_dir + "/drive_c")
|
set_dir_casefold_bit(self.prefix_dir + "/drive_c")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user