Build ROM from C source

* ROM is mismatching but functionally equivalent.
* ROM does not shift, so any edits must use the same amount of bytecode.
* Asset files such as stage setup and lang are not included yet (they are copied from the base ROM).
This commit is contained in:
Ryan Dwyer committed 2019-12-07 18:03:53 +10:00
1 parent 3c5ac052e9
commit 14f8d62e3e
7 files changed
+287 -266

No files matched your search

+2 -18
View File
@@ -2,22 +2,6 @@
size=$(stat --format="%s" $1)
printf "0: 1173 %.6x" $size | xxd -r -g0 > $1.tmp
cat $1 | tools/gzip --no-name --best | head --bytes=-8 | tail --bytes=+11 >> $1.tmp
# Pad to 0x10 boundary
compsize=$(stat --format="%s" $1.tmp)
over=$((compsize % 0x10))
if [ "$over" -gt 0 ]; then
while [ "$over" -lt 16 ]; do
echo -ne \\x00 >> $1.tmp
over=$((over + 1))
done
fi
cat $1.tmp
rm -f $1.tmp
printf "0: 1173 %.6x" $size | xxd -r -g0
cat $1 | tools/gzip --no-name --best | head --bytes=-8 | tail --bytes=+11