Skip to content

Commit

Permalink
don't restore 'remove these files.txt' when uninstalling a mod
Browse files Browse the repository at this point in the history
  • Loading branch information
th3w1zard1 committed Jan 15, 2024
1 parent 7bf3bad commit 8208260
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tools/HoloPatcher/src/uninstall_mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ def restore_backup(
self.log.add_note(f"Removed {rel_filepath}...")
for file in files_in_backup:
file_path = Path.pathify(file)
if file_path.name == "remove these files.txt":
continue
destination_path = self.game_path / file_path.relative_to(backup_folder) # type: ignore[attr-defined]
destination_path.parent.mkdir(parents=True, exist_ok=True)
shutil.copy(file_path, destination_path)
Expand Down

0 comments on commit 8208260

Please sign in to comment.