Skip to content

Commit

Permalink
Update config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
th3w1zard1 committed Oct 28, 2023
1 parent 6f3d963 commit f1a3bb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pykotor/tslpatcher/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,11 @@ def should_patch(
dialog_tlk_path = output_container_path.joinpath(patch.filename)

create_backup(self.log, dialog_tlk_path, *self.backup())
should_patch(config.patches_tlk)
should_patch(patch, dialog_tlk_path.exists())

dialog_tlk = read_tlk(dialog_tlk_path)

config.patches_tlk.apply(dialog_tlk, memory)
patch.apply(dialog_tlk, memory)
write_tlk(dialog_tlk, dialog_tlk_path)
self.log.complete_patch()

Expand Down

0 comments on commit f1a3bb7

Please sign in to comment.