diff options
| author | coco875 <59367621+coco875@users.noreply.github.com> | 2024-04-17 21:58:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-17 13:58:11 -0600 |
| commit | 91dcf56629b295100b88c8ae0280a9becbefdf73 (patch) | |
| tree | 14b9492ad2425e4929133e3034123d8aa464cc56 | |
| parent | e05474030fb1144ea1b2c7f36ee87214aeddf77c (diff) | |
Fix line endings in windows (#611)
* force lf windows
* Update torch
| -rw-r--r-- | tools/linkonly_generator.py | 3 | ||||
| m--------- | tools/torch | 0 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tools/linkonly_generator.py b/tools/linkonly_generator.py index 16ef21e6d..163051b17 100644 --- a/tools/linkonly_generator.py +++ b/tools/linkonly_generator.py @@ -2,6 +2,7 @@ import re import sys +import io abbreviations = { "banshee_boardwalk": "BB", @@ -365,6 +366,6 @@ with open(f"courses/{course_name}/course_offsets.c", "r") as offsets: # Write to files only after we've generated their entire contents. That way if an # error occurs during the generation we don't write an incomplete file -with open(f"courses/{course_name}/course_textures.linkonly.c", "w") as linkonlyc, open(f"courses/{course_name}/course_textures.linkonly.h", "w") as linkonlyh: +with io.open(f"courses/{course_name}/course_textures.linkonly.c", "w", newline="\n") as linkonlyc, io.open(f"courses/{course_name}/course_textures.linkonly.h", "w", newline="\n") as linkonlyh: linkonlyh.write(h_string) linkonlyc.write(c_string) diff --git a/tools/torch b/tools/torch -Subproject f6b786106b9936bdb075130cd98fd860ce6a631 +Subproject 4d8ac381c08fd30cc6a4f247576c7dbfe09dc70 |
