decomp: finish sunken-pipegame | sun-exit-chamber | beach-obs (#1021)

* decomp: finish `sunken-pipegame`

* decomp: finish `sun-exit-chamber`

* decomp: finish `beach-obs`

* fix mistakes

* make `collide-func` work in offline tests
This commit is contained in:
Tyler Wilding
2021-12-28 18:52:52 -05:00
committed by GitHub
parent 9b0ae373f0
commit 99db6bb371
14 changed files with 9560 additions and 82 deletions
+6 -7
View File
@@ -15,7 +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')
missing_arg = re.compile('local-vars.*none\)')
for file in files:
src_path = ""
@@ -54,12 +54,11 @@ 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
missing_arg_match = missing_arg.search(line)
if missing_arg_match:
print("missing_arg - {}:{}".format(file_path, lineno + 1))
throw_error = True
continue
if throw_error:
print("found potential problems!")