decomp: decompile almost all the platform related files (#812)

* deocmp: `plat` finished, `baseplat` started

* decomp: finish `baseplat`

* decomp: finish `plat-button`

* decomp: finish `plat-eco`

* decomp: finish `citb-drop-plat-CIT`

* decomp: finish `cit-drop-plat-L1`

* decomp: finish `plat-flip`

* decomp: added a bunch of label defs

* decomp: `plat-button` ref test added

* stash

* decomp: finish `baseplat`

* decomp: finish `plat`

* decomp: finish `plat-button`

* tests: fix offline-test to handle multi-DGO files better

* decomp: finish `citb-drop-plat-CIT`

* decomp: finish `plat-flip`

* decomp: finish `wedge-plats`

* tools: fix memory analyzer, skip invalid type

* decomp: finish `wall-plat`

* fix ordering

* fix some casting issues

* cleanup after conflict resolution

* address reviews
This commit is contained in:
Tyler Wilding
2021-09-06 21:10:19 -04:00
committed by GitHub
parent d6ffaede3a
commit 4ff2130d55
35 changed files with 9183 additions and 634 deletions
+10 -3
View File
@@ -7,7 +7,7 @@ parser.add_argument("--file")
parser.add_argument("--list", type=int)
args = parser.parse_args()
def update_file(file):
def update_file(file, hack):
new_file_contents = []
print("Next file to decompile is - " + file[0])
print("Target is - " + "goal_src/" + file[4] + "/" + file[0] + ".gc")
@@ -16,8 +16,10 @@ def update_file(file):
with open("decompiler\config\jak1_ntsc_black_label.jsonc", "r") as config_file:
cfg_lines = config_file.readlines()
for line in cfg_lines:
if "allowed_objects" in line:
if "allowed_objects" in line and hack == False:
line = " \"allowed_objects\": [\"" + file[0] + "\"],\n"
elif "allowed_objects" in line and hack == True:
line = " \"allowed_objects\": [\"" + file[1] + "\"],\n"
new_file_contents.append(line)
if len(new_file_contents) > 0:
with open("decompiler\config\jak1_ntsc_black_label.jsonc", "w") as f:
@@ -27,7 +29,12 @@ def update_file(file):
if args.file:
for file in file_list:
if file[0] == args.file:
update_file(file)
update_file(file, False)
break
elif file[1] == args.file:
# NOTE - kinda a hack, assumes -ag files always come after
update_file(file, True)
break
else:
list_eligible = []
for file in file_list: