mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-01-22 05:53:47 +00:00
compress-texture: when calling wine, unset $DISPLAY so it won't show a dialog box if compressing failed.
This commit is contained in:
parent
fd716c102c
commit
058d912718
@ -25,7 +25,7 @@ case "$tool" in
|
||||
dir_dos="C:/${dir##*/}"
|
||||
ext=${src##*.}
|
||||
cp "$src" "$dir/src.$ext"
|
||||
wine "$HOME/.wine/drive_c/Program Files/AMD/The Compressonator 1.50/TheCompressonator.exe" -convert -mipmaps "$dir_dos/src.$ext" "$dir_dos/dst.dds" $c $f "$@" -mipper BoxFilter.dll
|
||||
DISPLAY= wine "$HOME/.wine/drive_c/Program Files/AMD/The Compressonator 1.50/TheCompressonator.exe" -convert -mipmaps "$dir_dos/src.$ext" "$dir_dos/dst.dds" $c $f "$@" -mipper BoxFilter.dll
|
||||
mv "$dir/dst.dds" "$dst"
|
||||
rm -rf "$dir"
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user