decomp: finish plant-boss and crates (#1012)

* stuck: `crates` has issues setting bitfield with `r0`

* decomp: finish `plant-boss` except for 1 function

* decomp: finish `crates`

* address feedback
This commit is contained in:
Tyler Wilding
2021-12-18 01:31:14 -05:00
committed by GitHub
parent 574a61e02a
commit e6d17eb78f
9 changed files with 8989 additions and 26 deletions
+7
View File
@@ -15,6 +15,7 @@ method_split_pattern = re.compile('t9-\d+\s\(method-of-object')
function_split_pattern = re.compile('\(t9-\d+\)')
missing_res_tag_pattern = re.compile('(sv-\d{2,} int)')
decompiler_error_pattern = re.compile(';; ERROR')
missing_state_arg = re.compile('\s\(-> arg3 param \d\)\s')
for file in files:
src_path = ""
@@ -53,6 +54,12 @@ for file in files:
print("decompiler_error - {}:{}".format(file_path, lineno + 1))
throw_error = True
continue
# todo - not good enough, ignore if there is only whitespace on the leftof the match
# missing_state_arg_match = missing_state_arg.search(line)
# if missing_state_arg_match:
# print("missing_state_arg - {}:{}".format(file_path, lineno + 1))
# throw_error = True
# continue
if throw_error:
print("found potential problems!")
+2 -1
View File
@@ -32,7 +32,8 @@ files_with_modifications = [
"logic-target",
"default-menu",
"collide-shape",
"cam-states"
"cam-states",
"plant-boss"
]
for file in files: