Add file_setup.sh to streamline first-time setup for each file

This commit is contained in:
rozlette
2020-04-18 14:42:28 -05:00
parent 73893926c4
commit 57587fa612
2 changed files with 25 additions and 0 deletions
+3
View File
@@ -40,7 +40,10 @@ if __name__ == '__main__':
current_file.close()
if args.c_base != None:
os.makedirs(os.path.dirname(args.c_base), exist_ok=True)
with open(args.c_base, 'w') as f:
f.write('#include <ultra64.h>\n#include <global.h>\n\n')
for name in file_names:
f.write('GLOBAL_ASM("{}")\n\n'.format(name))