aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-06-02 11:19:26 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2023-06-02 11:19:26 +0200
commitddc0c7aee0b80b4228ab9499360f0d376dfaab9e (patch)
tree830876da6f048417b80599dad7cbad43b7f49987 /tools
parent4e12a93630e7cfdf5dd042311710201ed018dabb (diff)
Update embedded resources management
Diffstat (limited to 'tools')
-rw-r--r--tools/assets/icons/cburnett.pngbin0 -> 47660 bytes
-rw-r--r--tools/assets/icons/chesscom_8bits.pngbin0 -> 4828 bytes
-rw-r--r--tools/assets/icons/hide.pngbin0 -> 1572 bytes
-rw-r--r--tools/assets/icons/mat.pngbin0 -> 1833 bytes
-rw-r--r--tools/assets/icons/swap.pngbin0 -> 9593 bytes
-rw-r--r--tools/assets/icons/visible.pngbin0 -> 6126 bytes
-rw-r--r--tools/assets/icons/zoomin.pngbin0 -> 10138 bytes
-rw-r--r--tools/assets/icons/zoomout.pngbin0 -> 9323 bytes
-rwxr-xr-xtools/embedded.sh12
9 files changed, 9 insertions, 3 deletions
diff --git a/tools/assets/icons/cburnett.png b/tools/assets/icons/cburnett.png
new file mode 100644
index 0000000..171e994
--- /dev/null
+++ b/tools/assets/icons/cburnett.png
Binary files differ
diff --git a/tools/assets/icons/chesscom_8bits.png b/tools/assets/icons/chesscom_8bits.png
new file mode 100644
index 0000000..7e52a97
--- /dev/null
+++ b/tools/assets/icons/chesscom_8bits.png
Binary files differ
diff --git a/tools/assets/icons/hide.png b/tools/assets/icons/hide.png
new file mode 100644
index 0000000..55a91f7
--- /dev/null
+++ b/tools/assets/icons/hide.png
Binary files differ
diff --git a/tools/assets/icons/mat.png b/tools/assets/icons/mat.png
new file mode 100644
index 0000000..54b4b9c
--- /dev/null
+++ b/tools/assets/icons/mat.png
Binary files differ
diff --git a/tools/assets/icons/swap.png b/tools/assets/icons/swap.png
new file mode 100644
index 0000000..02cf137
--- /dev/null
+++ b/tools/assets/icons/swap.png
Binary files differ
diff --git a/tools/assets/icons/visible.png b/tools/assets/icons/visible.png
new file mode 100644
index 0000000..af047cf
--- /dev/null
+++ b/tools/assets/icons/visible.png
Binary files differ
diff --git a/tools/assets/icons/zoomin.png b/tools/assets/icons/zoomin.png
new file mode 100644
index 0000000..38d7af7
--- /dev/null
+++ b/tools/assets/icons/zoomin.png
Binary files differ
diff --git a/tools/assets/icons/zoomout.png b/tools/assets/icons/zoomout.png
new file mode 100644
index 0000000..b0bd0f1
--- /dev/null
+++ b/tools/assets/icons/zoomout.png
Binary files differ
diff --git a/tools/embedded.sh b/tools/embedded.sh
index 0d8f925..6acbfab 100755
--- a/tools/embedded.sh
+++ b/tools/embedded.sh
@@ -3,8 +3,14 @@
########## RESOURCES ##########
ressources=$(cat <<-EndOfResources
+assets/boards/chesscom_8bits.png
+assets/pieces/cburnett.png
+assets/icons/hide.png
+assets/icons/mat.png
assets/icons/ochess.png
-assets/icons/ochess.svg
+assets/icons/swap.png
+assets/icons/zoomin.png
+assets/icons/zoomout.png
EndOfResources
)
###############################
@@ -28,9 +34,9 @@ do
name_std=${name}_${ext}.hpp # Header name standard
out="${dst}/${name_std}"
echo "- Generating ${name_std} resource..."
- bin2c "$res" "${name}_${ext}" # TODO: Apply!
+ bin2c "$res" "${name}_${ext}" > "$out"
[ -z "$includes" ] && includes="${name_std}" || includes="${includes} ${name_std}"
done
-echo "Please add the following includes to binres.hpp:"
+echo "Please update the binres.cpp and binres.hpp to reflect these changes."
echo "$includes"|tr "[:space:]" "\n"|awk '{print("#include \""$1"\"")}'