Open Mitch187 opened 1 year ago
Here is my script to transfer the Screenscraper bezels to TheBezelsProject (get the right filenames for the roms)
zielverzeichnis="/userdata/decorations/thebezelproject/games" cd "${zielverzeichnis}" for verzeichnis in do if [ -d "${verzeichnis}" ] then echo "Transfer Game Bezels (${verzeichnis}) from Screenscraper to TheBezelProject" cd "${zielverzeichnis}/${verzeichnis}" rm cd "/userdata/roms/${verzeichnis}/images" cp -bezel.png "${zielverzeichnis}/${verzeichnis}" cd "${zielverzeichnis}/${verzeichnis}" for i in -bezel.png do test -f "$i" && mv "$i" "${i%-bezel.png}.png" done cd "${zielverzeichnis}" fi done
in fact we must just add an option in es and in configgen, take the image from here
+1 from me too!
Here is my script to transfer the Screenscraper bezels to TheBezelsProject (get the right filenames for the roms)
Thanks a lot for this script... if there was a way for you to update it to copy only what is none existing on the thebezelproject side it would be amazing... it brings the RPI4 to its knees when its run... so anything to make it "lighter" is welcome.
The general approach is rather wrong as you rely only on systems that are available in TheBezelProject only. One should rather loop from exiting rom's system image folders having bezels. Here is a code that does this, with colors and, obviously, does only copy missing bezels. You could put his code in a script and call it from custom.sh so that it syncs every time Batocera starts.
#!/bin/bash
# ANSI color codes
GREEN='\033[0;32m'
RED='\033[0;31m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
# use decorations from screenscraper
target_directory="/userdata/decorations/thebezelproject/games"
source_directory="/userdata/roms"
cd "${source_directory}"
for system in */
do
echo -e "-> ${BLUE}${system%/}${NC}..."
if [ -d "${system}/images" ]; then
mkdir -p "${target_directory}/${system}"
for bezel in ${system}images/*-bezel.png
do
if [ -f "${bezel}" ]; then
bbezel=$(basename "$bezel")
nbezel="${bbezel%-bezel.png}.png"
if [ ! -f "${target_directory}/${system}${nbezel}" ]; then
if cp "${bezel}" "${target_directory}/${system}${nbezel}"; then
echo -e "[${GREEN}COPIED${NC}] ${bezel} to ${target_directory}/${system}${nbezel}"
else
echo -e "[${RED}FAILED${NC}] could not copy ${bezel} to ${target_directory}/${system}${nbezel}"
fi
fi
fi
done
fi
done
Hi,
i want to use the bezels from screenscraper. Is it possible? The bezels files are in the images folder of the emulated system...
...and are linked in the gamelist.xml:
Or is it not an issue, can i activate them?