d/jak2: finish mood-funcs | mood-funcs2 | almost all of mood and airlock (#1842)

This commit is contained in:
Tyler Wilding
2022-09-06 20:35:00 -04:00
committed by GitHub
parent b5d21be9c5
commit 44d59e6b33
143 changed files with 18536 additions and 1539 deletions
@@ -114,7 +114,7 @@ def lookahead_for_code(lines, index):
# returns form, or none
def is_line_start_of_form(line):
if line.rstrip().startswith(";"):
if line.lstrip().startswith(";"):
return None
matches = re.search(r"\(\s*([^\s.]*)\s+", line)
if matches is not None:
+2 -2
View File
@@ -142,10 +142,10 @@ with open(decomp_file_path) as f:
if not skip_form:
decomp_form_def_lines.append(decomp_within_form)
decomp_lines.append(line)
while i < len(lines):
while i + 1 < len(lines):
i = i + 1
line = lines[i]
if not skip_form:
if not skip_form and not should_ignore_line(line):
decomp_lines.append(line)
if has_form_ended(decomp_form_paren_stack, line):
decomp_within_form = None