1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-04 06:54:33 +00:00

Whitespace (#1112)

* remove trailing whitespaces

* minor docs tweaks

* some more trailing whitespaces

* few more tweaks
This commit is contained in:
playerskel 2022-01-24 00:09:02 +01:00 committed by GitHub
parent f344fe648b
commit f4a72303cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
150 changed files with 493 additions and 494 deletions

View file

@ -18,12 +18,12 @@ includes = "#include <ultra64.h>\n#include <global.h>\n\n"
def remove_struct(root, filename):
with open(os.path.join(root, filename)) as f:
c_text = f.read()
struct_start = c_text.find("typedef")
struct_end = c_text.find("#define")
struct = c_text[struct_start:struct_end]
newfile_text = "#include \"" + filename[:-2] + ".h\"" + "\n\n" + c_text[struct_end:]
with open(os.path.join(root, filename), "w", newline="\n") as f:
f.write(newfile_text)
@ -51,7 +51,7 @@ def handle_file(root, filename):
header_text += "extern const ActorInit " + init_vars_name + ";\n\n"
header_text += "#endif\n"
with open(os.path.join(root, filename[:-2] + ".h"), "w", newline="\n") as f:
f.write(header_text)