hvbjabfa
|
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 142 KiB After Width: | Height: | Size: 133 KiB |
|
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 130 KiB |
BIN
img/player/playerV2-full.pdn
Normal file
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 60 KiB |
25
xxd_convert.sh
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Vérifie si un argument de dossier est fourni
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
echo "Usage: $0 <dossier>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Vérifie si le dossier existe
|
||||||
|
DIR=$1
|
||||||
|
if [ ! -d "$DIR" ]; then
|
||||||
|
echo "Erreur : Le dossier '$DIR' n'existe pas."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Parcourt tous les fichiers .png du dossier et sous-dossiers
|
||||||
|
find "$DIR" -type f -name "*.ttf" | while read -r file; do
|
||||||
|
# Récupère le nom du fichier sans extension
|
||||||
|
base_name=$(basename "$file" .ttf)
|
||||||
|
# Définit le nom de sortie avec extension .h
|
||||||
|
output_file="${file%/*}/${base_name}.h"
|
||||||
|
# Exécute la commande xxd -i
|
||||||
|
xxd -i "$file" > "$output_file"
|
||||||
|
echo "Converti : $file -> $output_file"
|
||||||
|
done
|
||||||