Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilaa3 committed Sep 27, 2024
1 parent 0de6814 commit bb78cad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fast64_internal/sm64/sm64_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,12 @@ def write_includes_with_alternate(path: Path, includes: list[Path] | None, befor
if includes is None:
return False
if header_type == "Level":
# backwards compatability with level_name/dir_name_include formatting
path_and_alternates = [
[Path(dir_name) / include, level_name / Path(dir_name) / include] for include in includes
[
Path(dir_name) / include,
Path("levels") / level_name / (dir_name) / include, # backwards compatability
]
for include in includes
]
else:
path_and_alternates = [[Path(dir_name) / include] for include in includes]
Expand Down

0 comments on commit bb78cad

Please sign in to comment.