mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-02-22 13:36:52 +00:00
make the fourcchack actually work for nonsupporting compressors
This commit is contained in:
parent
97fe16d7d3
commit
4f966a0222
@ -12,6 +12,7 @@ dst=$1; shift
|
||||
|
||||
c=
|
||||
f=
|
||||
|
||||
fourcchack=
|
||||
case "$tool" in
|
||||
compressonator-dxtc)
|
||||
@ -29,6 +30,13 @@ case "$tool" in
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "$fourcchack" ]; then
|
||||
fourcchack_dir=`mktemp -d`
|
||||
convert "$src" -fx "u*u.a" "$fourcchack_dir/src.$ext"
|
||||
src="$fourcchack_dir/src.$ext"
|
||||
fi
|
||||
|
||||
case "$tool" in
|
||||
compressonator-dxtc|compressonator-atic)
|
||||
case "$tool" in
|
||||
@ -70,4 +78,5 @@ esac
|
||||
if [ -n "$fourcchack" ]; then
|
||||
# use dd to hack in the right FOURCC
|
||||
echo -n "$fourcchack" | dd of="$dst" bs=1 count=4 seek=84
|
||||
rm -rf "$fourcchack_dir"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user