port: build: move to CMake

god forgive me
This commit is contained in:
fgsfds committed 2024-11-12 22:08:18 +01:00
1 parent 91c43385dd
commit 0bdf79cc51
11 files changed
+693 -1175

No files matched your search

+8 -2
View File
@@ -157,5 +157,11 @@ def writefile(filename, contents):
fd.close()
if 'ROMID' not in os.environ:
# default to ntsc-final
os.environ['ROMID'] = 'ntsc-final'
# check if it's in args
for arg in sys.argv:
if arg.startswith('--romid='):
os.environ['ROMID'] = arg.removeprefix('--romid=')
break
else:
# default to ntsc-final
os.environ['ROMID'] = 'ntsc-final'
+6 -1
View File
@@ -6,7 +6,12 @@ import os
import sys
def main():
fd = open('src/assets/%s/animations.json' % os.environ['ROMID'], 'r')
if (len(sys.argv) < 2) or (sys.argv[1].startswith('--')):
filename = 'src/assets/%s/sequences.json' % os.environ['ROMID']
else:
filename = sys.argv[1]
fd = open(filename, 'r')
data = fd.read()
fd.close()
+6 -1
View File
@@ -6,7 +6,12 @@ import os
import sys
def main():
fd = open('src/assets/%s/sequences.json' % os.environ['ROMID'], 'r')
if (len(sys.argv) < 2) or (sys.argv[1].startswith('--')):
filename = 'src/assets/%s/sequences.json' % os.environ['ROMID']
else:
filename = sys.argv[1]
fd = open(filename, 'r')
data = fd.read()
fd.close()
+6 -1
View File
@@ -6,7 +6,12 @@ import os
import sys
def main():
fd = open('src/assets/%s/textures.json' % os.environ['ROMID'], 'r')
if (len(sys.argv) < 2) or (sys.argv[1].startswith('--')):
filename = 'src/assets/%s/textures.json' % os.environ['ROMID']
else:
filename = sys.argv[1]
fd = open(filename, 'r')
data = fd.read()
fd.close()