[nostalgia] Integrate Ox Preloader
This commit is contained in:
@ -1,24 +1,16 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
OS=$(uname | tr [:upper:] [:lower:])
|
||||
HOST_ENV=${OS}-$(uname -m)
|
||||
|
||||
BIN=./dist/${HOST_ENV}-$(cat .current_build)/bin/
|
||||
PATH=$BIN:${DEVKITPRO}/tools/bin/:${DEVKITARM}/bin/:$PATH
|
||||
NOSTALGIA_BIN=build/gba-*/src/nostalgia/player/nostalgia.bin
|
||||
NOSTALGIA_MEDIA=nostalgia_media.oxfs
|
||||
NOSTALGIA_BIN=build/$(hostname)/gba-*/src/nostalgia/player/nostalgia.bin
|
||||
NOSTALGIA_PROJECT=$1
|
||||
NOSTALGIA_GBA=nostalgia.gba
|
||||
MEDIA_HEADER=media_header.txt
|
||||
|
||||
echo NOSTALGIA_MEDIA_HEADER_________ > $MEDIA_HEADER
|
||||
|
||||
nost-pack -src $NOSTALGIA_PROJECT -dst $NOSTALGIA_MEDIA
|
||||
|
||||
padbin 32 $NOSTALGIA_BIN
|
||||
ls -lh $NOSTALGIA_BIN
|
||||
cat $NOSTALGIA_BIN $MEDIA_HEADER $NOSTALGIA_MEDIA > $NOSTALGIA_GBA
|
||||
rm -f $MEDIA_HEADER #$NOSTALGIA_MEDIA
|
||||
cp $NOSTALGIA_BIN $NOSTALGIA_GBA
|
||||
${BIN}/nost-pack -src $NOSTALGIA_PROJECT -rom-bin $NOSTALGIA_GBA
|
||||
gbafix $NOSTALGIA_GBA
|
||||
|
Reference in New Issue
Block a user