Browse Source

Reformat sound effects table

pull/5690/head
Gleb Mazovetskiy 3 years ago
parent
commit
a596c8223d
  1. 2056
      Source/effects.cpp
  2. 2
      tools/cpp_format_struct_table.py

2056
Source/effects.cpp

File diff suppressed because it is too large Load Diff

2
tools/cpp_format_struct_table.py

@ -13,6 +13,7 @@ def Main():
"files",
nargs="*",
default=[
root.joinpath("Source/effects.cpp"),
root.joinpath("Source/itemdat.cpp"),
root.joinpath("Source/misdat.cpp"),
root.joinpath("Source/monstdat.cpp"),
@ -188,6 +189,7 @@ def ParseRow(line: str, column_state: ColumnsState) -> Row:
if not column_state.has_header and _HEADER_COMMENT_RE.match(line):
header_columns = ParseHeader(_HEADER_CONTENTS_RE.match(line).group(1))
if len(header_columns) > 1:
column_state.has_header = True
return Row(header=True, leading_comment=False, columns=header_columns)
if _SKIP_LINE_RE.match(line):

Loading…
Cancel
Save