Skip to content

Commit

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

if write_includes(data_path, [f'"{Path(dir_name) / include}"' for include in data_includes], path_must_exist=True):
if write_includes(
data_path, [f'"{(Path(dir_name) / include).as_posix()}"' for include in data_includes], path_must_exist=True
):
print(f"Updated data includes at {header_path}.")
if write_includes(
header_path,
[f'"{Path(dir_name) / include}"' for include in header_includes],
[f'"{(Path(dir_name) / include).as_posix()}"' for include in header_includes],
path_must_exist=True,
before_endif=True,
):
print(f"Updated header includes at {header_path}.")
if write_includes(geo_path, [f'"{Path(dir_name) / include}"' for include in geo_includes], path_must_exist=True):
if write_includes(
geo_path, [f'"{(Path(dir_name) / include).as_posix()}"' for include in geo_includes], path_must_exist=True
):
print(f"Updated geo data at {geo_path}.")


Expand Down

0 comments on commit de8744f

Please sign in to comment.