From bb78cadff1008a4933ffd3c28748bdf0003b3a75 Mon Sep 17 00:00:00 2001 From: Lila Date: Fri, 27 Sep 2024 20:04:57 +0100 Subject: [PATCH] small fix --- fast64_internal/sm64/sm64_utility.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fast64_internal/sm64/sm64_utility.py b/fast64_internal/sm64/sm64_utility.py index faf544925..58cea3bc0 100644 --- a/fast64_internal/sm64/sm64_utility.py +++ b/fast64_internal/sm64/sm64_utility.py @@ -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]