use native api instead of standard winapi

fix update_offsets.py
add multiprocessor compilations
change linking method
This commit is contained in:
notcpuid
2023-11-02 15:10:30 +03:00
parent 658d50e3f2
commit d6a0398a28
3 changed files with 37 additions and 12 deletions
+6 -6
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/offsets.json"
dest_path = "./offsets.json"
# Fetch the source JSON
source_response = requests.get(source_url)
@@ -33,12 +33,12 @@ if dest_data["build_number"] == int(build_number):
dest_data["build_number"] = int(build_number)
dest_data["dwBuildNumber"] = source_data["Engine2Dll"]["data"]["dwBuildNumber"]["value"]
dest_data["dwLocalPlayer"] = source_data["ClientDll"]["data"]["dwLocalPlayerPawn"]["value"]
dest_data["dwEntityList"] = source_data["ClientDll"]["data"]["dwEntityList"]["value"]
dest_data["dwViewMatrix"] = source_data["ClientDll"]["data"]["dwViewMatrix"]["value"]
dest_data["dwBuildNumber"] = source_data["engine_2dll"]["data"]["dwBuildNumber"]["value"]
dest_data["dwLocalPlayer"] = source_data["client_dll"]["data"]["dwLocalPlayerPawn"]["value"]
dest_data["dwEntityList"] = source_data["client_dll"]["data"]["dwEntityList"]["value"]
dest_data["dwViewMatrix"] = source_data["client_dll"]["data"]["dwViewMatrix"]["value"]
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