Restore ability to build GBA roms

This commit is contained in:
2017-05-16 01:35:32 -05:00
parent 1be4adf333
commit 049f0b2245
5 changed files with 31 additions and 22 deletions

12
scripts/build_rom.sh Executable file
View File

@ -0,0 +1,12 @@
#! /usr/bin/env bash
set -e
echo NOSTALGIA_MEDIA_HEADER_________ > media_header.txt
./dist/current/bin/oxfs format 32 1k nostalgia_media.oxfs
./dist/current/bin/nost-pack -fs nostalgia_media.oxfs -img charset.png -inode 101 -tiles 40 -bpp 4 -c
${DEVKITARM}/bin/padbin 32 build/gba-release/src/nostalgia/player/nostalgia.bin
cat build/gba-release/src/nostalgia/player/nostalgia.bin media_header.txt nostalgia_media.oxfs > nostalgia.gba
${DEVKITARM}/bin/gbafix nostalgia.gba