-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added another animation constant. Fixed build on case-insensitive mod…
…e for Linux.
- Loading branch information
marzojr
authored and
marzojr
committed
Jul 4, 2012
1 parent
640db9a
commit 47157a4
Showing
4 changed files
with
75 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
#!/bin/bash | ||
|
||
check_source_files() | ||
{ | ||
if [[ ! -f "$1" ]]; then | ||
echo "Extracting source files..." | ||
unzip build_source &> /dev/null | ||
fi | ||
} | ||
|
||
[[ ! -d bin ]] && mkdir bin | ||
|
||
if [[ ! -f bin/s2p2bin ]]; then | ||
echo "Compiling s2p2bin..." | ||
check_source_files build_source/s2p2bin.cpp | ||
check_source_files build_source/KensSaxComp/S-Compressor.cpp | ||
g++ -O3 -s -o bin/s2p2bin build_source/s2p2bin.cpp build_source/KensSaxComp/S-Compressor.cpp &> /dev/null | ||
fi | ||
|
||
if [[ ! -f bin/fixpointer ]]; then | ||
echo "Compiling fixpointer..." | ||
check_source_files build_source/fixpointer.cpp | ||
g++ -O3 -s -o bin/fixpointer build_source/fixpointer.cpp &> /dev/null | ||
fi | ||
|
||
if [[ ! -f bin/fixheader ]]; then | ||
echo "Compiling fixheader..." | ||
check_source_files build_source/fixheader.cpp | ||
g++ -O3 -s -o bin/fixheader build_source/fixheader.cpp &> /dev/null | ||
fi | ||
|
||
[[ -f s2.bin ]] && mv -f s2.bin s2.prev.bin | ||
rm -f s2.p s2.h s2.log | ||
|
||
debug_syms="" | ||
print_err="-E -q" | ||
|
||
for n in `seq 1 2`; do | ||
if [[ "$1" == "-ds" ]]; then | ||
debug_syms="-g MAP" | ||
echo "Will generate debug symbols" | ||
elif [[ "$1" == "-pe" ]]; then | ||
print_err="" | ||
echo "Selected detailed assembler output" | ||
fi | ||
shift | ||
done | ||
|
||
echo Assembling... | ||
|
||
asl -xx -c $debug_syms $print_err -A -U s2.asm | ||
|
||
if [[ -f s2.log ]]; then | ||
echo | ||
echo "*****************************************" | ||
echo "* *" | ||
echo "* There were build errors/warnings. *" | ||
echo "* *" | ||
echo "*****************************************" | ||
echo | ||
cat s2.log | ||
exit 1 | ||
fi | ||
|
||
[[ -f s2.p ]] && bin/s2p2bin s2.p s2.bin s2.h | ||
[[ -f s2.bin ]] && bin/fixpointer s2.h s2built.bin off_3A294 MapRUnc_Sonic \$2D 0 4 word_728C_user Obj5F_MapUnc_7240 2 2 1 | ||
[[ -f s2.bin ]] && bin/fixheader s2.bin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters