Update update_offsets.py
Fixed an issue introduced by the last pull request
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user