From 23380778868f01af9771fb8aa3d441ea1163bf6d Mon Sep 17 00:00:00 2001 From: IMXNOOBX <69653071+IMXNOOBX@users.noreply.github.com> Date: Sat, 4 Nov 2023 12:05:10 +0100 Subject: [PATCH] Update update_offsets.py Fixed an issue introduced by the last pull request --- offsets/update_offsets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/offsets/update_offsets.py b/offsets/update_offsets.py index 3338983..e31722f 100644 --- a/offsets/update_offsets.py +++ b/offsets/update_offsets.py @@ -5,7 +5,7 @@ import re source_url = "https://github.com/a2x/cs2-dumper/raw/main/generated/offsets.json" commits_url = "https://api.github.com/repos/a2x/cs2-dumper/commits" -dest_path = "./offsets.json" +dest_path = "./offsets/offsets.json" # Fetch the source JSON source_response = requests.get(source_url) @@ -41,4 +41,4 @@ dest_data["dwViewMatrix"] = source_data["client_dll"]["data"]["dwViewMatrix"]["v with open(dest_path, 'w') as dest_file: json.dump(dest_data, dest_file, indent=4) -print("Offsets updated in the local file.") # We dont exit so we know that the game has been updated and that we have to commit the new offsets \ No newline at end of file +print("Offsets updated in the local file.") # We dont exit so we know that the game has been updated and that we have to commit the new offsets