From 5562dc33aefe36300db5edf769282dfee2f89428 Mon Sep 17 00:00:00 2001 From: Mc-muffin <8714476+Mc-muffin@users.noreply.github.com> Date: Sun, 8 Oct 2023 16:12:17 -0500 Subject: [PATCH] Update pak2.py --- pythonlib/formats/pak2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pythonlib/formats/pak2.py b/pythonlib/formats/pak2.py index f3b1806..8527d16 100644 --- a/pythonlib/formats/pak2.py +++ b/pythonlib/formats/pak2.py @@ -152,11 +152,13 @@ if __name__ == "__main__": print() # Get new Theirsce, if there's no second arg just reinsert original + print(sys.argv[2]) if len(sys.argv) > 2: with open(sys.argv[2], "rb+") as f: theirsce = f.read() + pak2.chunks.theirsce = theirsce - with open(sys.argv[2] + ".new", "wb+") as output: + with open(sys.argv[1] + ".new", "wb+") as output: output.write(create_pak2(pak2)) print("Done!")