forked from tewtal/sm_practice_hack
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sh
executable file
·20 lines (16 loc) · 819 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
echo "Building SM NTSC Practice Hack"
cd resources
python3 create_dummies.py 00.sfc ff.sfc
echo "Building saveless version"
cp *.sfc ../build
../tools/asar --no-title-check -DFEATURE_SD2SNES=0 -DFEATURE_PAL=0 ../src/main.asm ../build/00.sfc
../tools/asar --no-title-check -DFEATURE_SD2SNES=0 -DFEATURE_PAL=0 ../src/main.asm ../build/ff.sfc
python3 create_ips.py ../build/00.sfc ../build/ff.sfc ../build/smhack20.ips
echo "Building SD2SNES version"
cp *.sfc ../build
../tools/asar --no-title-check -DFEATURE_SD2SNES=1 -DFEATURE_PAL=0 ../src/main.asm ../build/00.sfc
../tools/asar --no-title-check -DFEATURE_SD2SNES=1 -DFEATURE_PAL=0 ../src/main.asm ../build/ff.sfc
python3 create_ips.py ../build/00.sfc ../build/ff.sfc ../build/smhack20_sd2snes.ips
rm 00.sfc ff.sfc ../build/00.sfc ../build/ff.sfc
cd ..