2016-04-09 04:47:53 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
|
2016-04-14 17:02:11 -07:00
|
|
|
inject=../Lua/inject
|
2016-04-09 04:47:53 -07:00
|
|
|
rom=../roms/everything/"Legend of Zelda, The - Ocarina of Time - Master Quest (E) (Debug) [f1].z64"
|
|
|
|
lips=../Lua/lib/lips
|
2016-04-15 11:43:38 -07:00
|
|
|
out=oot-widescreen.z64
|
2016-04-09 04:47:53 -07:00
|
|
|
|
2016-04-15 11:43:38 -07:00
|
|
|
mkdir -p build
|
|
|
|
cp *.lua build/
|
|
|
|
cd build
|
|
|
|
|
|
|
|
cp ../../"$rom" "$out"
|
2016-04-09 04:47:53 -07:00
|
|
|
|
|
|
|
# don't copy entire dir; avoid copying dotfiles (.git)
|
|
|
|
mkdir -p lips
|
2016-04-15 11:43:38 -07:00
|
|
|
cp ../"$lips"/* lips
|
|
|
|
|
2016-04-15 12:17:46 -07:00
|
|
|
cp ../"$inject/"*.asm .
|
|
|
|
cp ../*.asm .
|
2016-04-09 04:47:53 -07:00
|
|
|
|
2016-04-15 11:43:38 -07:00
|
|
|
luajit patch.lua -o 0 \
|
|
|
|
--extra-rom 0x035D0000 --extra-ram 0x80700000 \
|
|
|
|
widescreen-inline.asm "$out"
|
2016-04-09 04:47:53 -07:00
|
|
|
|
2016-04-15 11:43:38 -07:00
|
|
|
(cd ../../; ./z64dump.py -f patch/build/"$out")
|