port: auto-generate headers like the decomp does

this does not require the ROM
This commit is contained in:
fgsfds committed 2023-08-09 22:32:26 +02:00
1 parent 67492e744d
commit 28282f1c35
7 files changed
+61 -14

No files matched your search

+3 -1
View File
@@ -3,6 +3,7 @@
import assetmgr
import json
import os
import sys
def main():
fd = open('src/assets/%s/textures.json' % os.environ['ROMID'], 'r')
@@ -11,7 +12,8 @@ def main():
rows = json.loads(data)
make_objects(rows)
if '--headers-only' not in sys.argv:
make_objects(rows)
make_header(rows)
def make_header(rows):