Skip to content

Commit

Permalink
write_includes_with_alternate
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilaa3 committed Sep 27, 2024
1 parent d30008e commit 0de6814
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fast64_internal/sm64/sm64_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def update_actor_includes(
else:
raise PluginError(f'Unknown header type "{header_type}"')

def write_includes_wrapper(path: Path, includes: list[Path] | None, before_endif=False):
def write_includes_with_alternate(path: Path, includes: list[Path] | None, before_endif=False):
if includes is None:
return False
if header_type == "Level":
Expand All @@ -332,11 +332,11 @@ def write_includes_wrapper(path: Path, includes: list[Path] | None, before_endif
footer=END_IF_FOOTER if before_endif else None,
)

if write_includes_wrapper(data_path, data_includes):
if write_includes_with_alternate(data_path, data_includes):
print(f"Updated data includes at {header_path}.")
if write_includes_wrapper(header_path, header_includes, before_endif=True):
if write_includes_with_alternate(header_path, header_includes, before_endif=True):
print(f"Updated header includes at {header_path}.")
if write_includes_wrapper(geo_path, geo_includes):
if write_includes_with_alternate(geo_path, geo_includes):
print(f"Updated geo data at {geo_path}.")


Expand Down

0 comments on commit 0de6814

Please sign in to comment.