nitro-engine/examples/loading/filesystem_textures_grf/assets.sh
Antonio Niño Díaz d52a92812e examples: Use BLOCKSDS environment variables to find tools
Only use the hardcoded paths if the variable isn't set to anything.
2025-03-24 21:18:00 +00:00

18 lines
336 B
Bash

#!/bin/sh
BLOCKSDS="${BLOCKSDS:-/opt/blocksds/core/}"
GRIT=$BLOCKSDS/tools/grit/grit
rm -rf nitrofiles
mkdir -p nitrofiles
$GRIT assets/a3pal32.png -W3 \
-ftr -fh! -p \
-gx -gb -gBa3i5 -gT \
-o nitrofiles/a3pal32_png
$GRIT assets/a1rgb5.png -W3 \
-ftr -fh! -p \
-gx -gb -gB16 -gT! \
-o nitrofiles/a1rgb5_png