mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 14:54:53 -04:00
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:
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user