mirror of
https://github.com/pmret/papermario.git
synced 2024-11-08 20:12:30 +01:00
f4efd09c80
* isk + warning patrol * minor reorg * effect data union * structs sorted and dummy structs added * effect data cleanup + some end funcs * two more PAL_PTR* * temp * flower fx * pal_inc_c * remove tabs * isk_05 * blur union * more isk * isk funcs done * sun stuff * delete sun_main * sun comments * extra stuff * actor decorations
18 lines
371 B
Python
18 lines
371 B
Python
#! /usr/bin/python3
|
|
|
|
from pathlib import Path
|
|
from sys import argv
|
|
import re
|
|
|
|
if __name__ == "__main__":
|
|
infile, outfile, cname = argv[1:]
|
|
|
|
with open(outfile, "w") as f:
|
|
f.write(f"unsigned char {cname}[] = {{ ")
|
|
|
|
with open(infile, "rb") as i:
|
|
for char in i.read():
|
|
f.write(f'0x{char:02X}, ')
|
|
|
|
f.write(f"}};\n")
|