Last active
October 31, 2020 23:55
-
-
Save luuk00000000000000000000000000000000000/c9d36bff83dbc742decd320bcf2b9eaa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import io | |
import sys | |
json = json.load(open(sys.argv[1], "r")) | |
for patch_info in json: | |
print("# " + patch_info["name"]) | |
#print("# " + patch_info["description"]) | |
for patches in patch_info["patches"]: | |
print(patches["dllName"], end=" ") | |
# mempatch-hook expects base address + 0xC00 | |
print(format(int(patches["dataOffset"]) + 3072, "X"), end=" ") | |
print(patches["dataEnabled"], end=" ") | |
print(patches["dataDisabled"]) | |
print() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment