From d4d23236240b2b49ec8fecae34977102068deb4f Mon Sep 17 00:00:00 2001 From: Mc-muffin <8714476+Mc-muffin@users.noreply.github.com> Date: Thu, 5 Dec 2024 21:06:39 -0500 Subject: [PATCH] Support replacements folder --- pythonlib/games/ToolsTOR.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pythonlib/games/ToolsTOR.py b/pythonlib/games/ToolsTOR.py index 0c06c59..2244456 100644 --- a/pythonlib/games/ToolsTOR.py +++ b/pythonlib/games/ToolsTOR.py @@ -1061,6 +1061,11 @@ class ToolsTOR(ToolsTales): continue else: file_list[file_index] = file + + # Further Overlay replacements + for file in (self.paths["translated_files"] / "replacements").glob("*/*"): + file_index = int(file.name[:5]) + file_list[file_index] = file max_chunk_size = 0x1000000