mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 00:02:43 +02:00
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:
1 parent
3c5ac052e9
commit
14f8d62e3e
7 files changed
+287
-266
No files matched your search
+2
-18
@@ -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
|
||||
Reference in new issue
Block a user