[nostalgia] Update gba-pkg script to use new nost-pack
This commit is contained in:
parent
2d2cd2bbb6
commit
8a562e1cc5
@ -4,20 +4,18 @@ set -e
|
|||||||
|
|
||||||
BIN=./dist/current/bin/
|
BIN=./dist/current/bin/
|
||||||
PATH=$BIN:${DEVKITARM}/bin/:$PATH
|
PATH=$BIN:${DEVKITARM}/bin/:$PATH
|
||||||
NOSTALGA_BIN=build/gba-*/src/nostalgia/player/nostalgia.bin
|
NOSTALGIA_BIN=build/gba-*/src/nostalgia/player/nostalgia.bin
|
||||||
NOSTALGA_MEDIA=nostalgia_media.oxfs
|
NOSTALGIA_MEDIA=nostalgia_media.oxfs
|
||||||
NOSTALGA_GBA=nostalgia.gba
|
NOSTALGIA_PROJECT=sample_project
|
||||||
|
NOSTALGIA_GBA=nostalgia.gba
|
||||||
MEDIA_HEADER=media_header.txt
|
MEDIA_HEADER=media_header.txt
|
||||||
CHARSET_FILE=src/nostalgia/core/studio/charset.png
|
|
||||||
TILESHEET_TEST_REGION1=media/tilesheet_test_region1.png
|
|
||||||
|
|
||||||
echo NOSTALGIA_MEDIA_HEADER_________ > $MEDIA_HEADER
|
echo NOSTALGIA_MEDIA_HEADER_________ > $MEDIA_HEADER
|
||||||
|
|
||||||
oxfs format 32 1k $NOSTALGA_MEDIA
|
nost-pack -src $NOSTALGIA_PROJECT -dst $NOSTALGIA_MEDIA
|
||||||
nost-pack -fs $NOSTALGA_MEDIA -img $CHARSET_FILE -inode 101 -tiles 127 -bpp 4 -c
|
|
||||||
nost-pack -fs $NOSTALGA_MEDIA -img $TILESHEET_TEST_REGION1 -inode 102 -tiles 4 -bpp 4 -c
|
|
||||||
|
|
||||||
padbin 32 $NOSTALGA_BIN
|
padbin 32 $NOSTALGIA_BIN
|
||||||
cat $NOSTALGA_BIN $MEDIA_HEADER $NOSTALGA_MEDIA > $NOSTALGA_GBA
|
ls -lh $NOSTALGIA_BIN
|
||||||
rm -f $MEDIA_HEADER $NOSTALGA_MEDIA
|
cat $NOSTALGIA_BIN $MEDIA_HEADER $NOSTALGIA_MEDIA > $NOSTALGIA_GBA
|
||||||
gbafix $NOSTALGA_GBA
|
rm -f $MEDIA_HEADER $NOSTALGIA_MEDIA
|
||||||
|
gbafix $NOSTALGIA_GBA
|
||||||
|
Loading…
Reference in New Issue
Block a user