src=$1; shift
dst=$1; shift
+ext=${src##*.}
+
c=
f=
esac
dir=`mktemp -d "$HOME/.wine/drive_c/compressonator.XXXXXX"`
dir_dos="C:/${dir##*/}"
- ext=${src##*.}
cp "$src" "$dir/src.$ext"
# compressonator and wine suck, so we sometimes have to retry :(
esac
nvcompress $f "$@" "$src" "$dst"
;;
+ s2tc)
+ case "$format" in
+ dxt1) f="-t DXT1" ;;
+ dxt3) f="-t DXT3" ;;
+ dxt5) f="-t DXT5" ;;
+ esac
+ s2tc_compress $f "$@" -i "$src" -o "$dst"
+ ;;
esac
if [ -n "$fourcchack" ]; then