]> 4ch.mooo.com Git - 16.git/blob - spri.sh
seguse.txt added to show _seg usage also OpenVGMFile needs to be ported to 16_snd...
[16.git] / spri.sh
1 #! /bin/bash
2 cd data/spri
3 if [ ! -f "$1".vrs ] && [ -f "$1".vrl ] && [ -f "$1".sht ]; then
4         ../../vrl2vrs -s "$1".sht -o "$1".vrs -hc "$1".h -hp _"$1"_
5         echo "$1".vrs created
6 #       echo "1st condition ok!"
7 fi
8 if [ -f "$1".vrl ] && [ -f "$1".sht ]; then
9         ../../pcxsscut -s "$1".sht -hc "$1".h -hp _"$1"_ -i ../"$1".pcx -p "$1".pal -tc 0x"$2" -y
10 #       echo "2nd condition ok!"
11 else
12         ../../pcx2vrl -i ../"$1".pcx -o "$1".vrl -p "$1".pal -tc 0x"$2"
13         echo "$1".vrl created
14 #       echo check if "$1".sht exist!
15 #       echo "3rd condition ok!"
16 fi
17 cd ../../