mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-04 06:54:33 +00:00
Fixup assets extraction (#1513)
This commit is contained in:
parent
8e04ae917f
commit
5086939880
2 changed files with 19 additions and 5 deletions
|
@ -391,7 +391,7 @@ def extract_all_text(text_out, staff_text_out):
|
|||
out += "\n#endif"
|
||||
out += "\n\n"
|
||||
|
||||
with open(text_out, "w") as outfile:
|
||||
with open(text_out, "w", encoding="utf8") as outfile:
|
||||
outfile.write(out.strip() + "\n")
|
||||
|
||||
if staff_text_out is not None:
|
||||
|
@ -402,5 +402,5 @@ def extract_all_text(text_out, staff_text_out):
|
|||
|
||||
out += f"DEFINE_MESSAGE(0x{message[0]:04X}, {textbox_type[message[1]]}, {textbox_ypos[message[2]]},\n{message[3]}\n)\n\n"
|
||||
|
||||
with open(staff_text_out, "w") as outfile:
|
||||
with open(staff_text_out, "w", encoding="utf8") as outfile:
|
||||
outfile.write(out.strip() + "\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue