Update update_offsets.py

Fixed an issue introduced by the last pull request
This commit is contained in:
IMXNOOBX
2023-11-04 12:05:10 +01:00
committed by GitHub
parent aff788e2aa
commit 2338077886
+2 -2
View File
@@ -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
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